{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_Programs_Estimates_2023.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}19 Sep 2023, 08:42:51
{txt}
{com}. 
. 
. use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\Estimation Sample.dta" 
{txt}
{com}. 
. preserve
{txt}
{com}. 
. ********************************************************************************************************************************************************************************************************************
. *************************************************AUSTRIA************************************************************************************************************************************************************
. *************************************************Refrigerator-Freezer Program**2009*********************************************************************************************************************************
. *************************************************Effects on Unit Sales and Prices of Subsidized and Non-subsidized**************************************************************************************************
. ********************************************************************************************************************************************************************************************************************
. 
. drop if category=="washing machine"
{txt}(772,376 observations deleted)

{com}. 
. set more off
{txt}
{com}. 
. gen tall=0
{txt}
{com}. replace tall=1 if (main_type!="1 DOOR 81 - 90 CM" & main_type!="1 DOOR UP TO 80 CM")
{txt}(1,502,968 real changes made)

{com}. 
. egen cmt=group(country month treataf)
{txt}
{com}. egen cy=group(country year)
{txt}
{com}. encode country, gen(c)
{txt}
{com}.  
. xtset id2

{txt}{col 1}Panel variable: {res}id2{txt} (unbalanced)

{com}. 
. egen median=median(price) if year==2009 & treataf==1 & month==7
{txt}(1,739,995 missing values generated)

{com}. gen mprice=1 if price>median & treataf==1 & year==2009 & month==7 & price!=.
{txt}(1,740,639 missing values generated)

{com}. replace mprice=0 if price<=median & treataf==1 & year==2009 & month==7 & price!=.
{txt}(348 real changes made)

{com}. by id, sort: egen summp=sum(mprice)
{txt}
{com}. by id, sort: gen medprice=1 if summp>0
{txt}(1,707,200 missing values generated)

{com}. replace medprice=0 if summp==0
{txt}(1,707,200 real changes made)

{com}. 
. 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
. ***UNIT SALES, SUBSIDIZED (3-MONTH WINDOW)
. 
. reghdfe dlogunits i.presub3af9##ib1.treataf i.presub2af9##ib1.treataf i.presub1af9##ib1.treataf i.sub1af9##ib1.treataf i.sub2af9##ib1.treataf i.sub3af9##ib1.treataf i.sub4af9##ib1.treataf i.postsub1af9##ib1.treataf i.postsub2af9##ib1.treataf i.postsub3af9##ib1.treataf  mage mage2 , absorb(id2 cmt) cluster(id) 
{res}{txt}(dropped 212751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 2 HDFE groups{col 51}F({res}  22{txt},{res}  11691{txt}){col 67}= {res}     14.10
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4453
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0844
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0007
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6954

{txt}{ralign 85:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}          dlogunits{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}1.presub3af9 {c |}{col 21}{res}{space 2}-.2120361{col 33}{space 2} .0598771{col 44}{space 1}   -3.54{col 53}{space 3}0.000{col 61}{space 4}-.3294053{col 74}{space 3}-.0946669
{txt}{space 10}0.treataf {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
{space 1}presub3af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .2969441{col 33}{space 2} .0651447{col 44}{space 1}    4.56{col 53}{space 3}0.000{col 61}{space 4} .1692496{col 74}{space 3} .4246386
{txt}{space 19} {c |}
{space 7}1.presub2af9 {c |}{col 21}{res}{space 2}-.1047865{col 33}{space 2} .0862083{col 44}{space 1}   -1.22{col 53}{space 3}0.224{col 61}{space 4}-.2737692{col 74}{space 3} .0641963
{txt}{space 19} {c |}
{space 1}presub2af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .1439341{col 33}{space 2} .0946045{col 44}{space 1}    1.52{col 53}{space 3}0.128{col 61}{space 4}-.0415064{col 74}{space 3} .3293746
{txt}{space 19} {c |}
{space 7}1.presub1af9 {c |}{col 21}{res}{space 2}-.1210306{col 33}{space 2} .0424514{col 44}{space 1}   -2.85{col 53}{space 3}0.004{col 61}{space 4}-.2042425{col 74}{space 3}-.0378187
{txt}{space 19} {c |}
{space 1}presub1af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .0810059{col 33}{space 2} .0487567{col 44}{space 1}    1.66{col 53}{space 3}0.097{col 61}{space 4}-.0145654{col 74}{space 3} .1765772
{txt}{space 19} {c |}
{space 10}1.sub1af9 {c |}{col 21}{res}{space 2}  .823807{col 33}{space 2} .0879916{col 44}{space 1}    9.36{col 53}{space 3}0.000{col 61}{space 4} .6513287{col 74}{space 3} .9962853
{txt}{space 19} {c |}
{space 4}sub1af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.7423372{col 33}{space 2} .0969331{col 44}{space 1}   -7.66{col 53}{space 3}0.000{col 61}{space 4}-.9323424{col 74}{space 3}-.5523321
{txt}{space 19} {c |}
{space 10}1.sub2af9 {c |}{col 21}{res}{space 2}-.1861171{col 33}{space 2} .0570125{col 44}{space 1}   -3.26{col 53}{space 3}0.001{col 61}{space 4}-.2978711{col 74}{space 3}-.0743631
{txt}{space 19} {c |}
{space 4}sub2af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .1523772{col 33}{space 2} .0640019{col 44}{space 1}    2.38{col 53}{space 3}0.017{col 61}{space 4} .0269227{col 74}{space 3} .2778317
{txt}{space 19} {c |}
{space 10}1.sub3af9 {c |}{col 21}{res}{space 2} .3381227{col 33}{space 2}  .089623{col 44}{space 1}    3.77{col 53}{space 3}0.000{col 61}{space 4} .1624466{col 74}{space 3} .5137988
{txt}{space 19} {c |}
{space 4}sub3af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.2238787{col 33}{space 2} .1041754{col 44}{space 1}   -2.15{col 53}{space 3}0.032{col 61}{space 4}-.4280799{col 74}{space 3}-.0196775
{txt}{space 19} {c |}
{space 10}1.sub4af9 {c |}{col 21}{res}{space 2}-.0181743{col 33}{space 2}  .056899{col 44}{space 1}   -0.32{col 53}{space 3}0.749{col 61}{space 4}-.1297057{col 74}{space 3} .0933572
{txt}{space 19} {c |}
{space 4}sub4af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.0208066{col 33}{space 2} .0651112{col 44}{space 1}   -0.32{col 53}{space 3}0.749{col 61}{space 4}-.1484353{col 74}{space 3} .1068222
{txt}{space 19} {c |}
{space 6}1.postsub1af9 {c |}{col 21}{res}{space 2}-.2719966{col 33}{space 2} .0755476{col 44}{space 1}   -3.60{col 53}{space 3}0.000{col 61}{space 4}-.4200825{col 74}{space 3}-.1239108
{txt}{space 19} {c |}
postsub1af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .2953368{col 33}{space 2} .0877115{col 44}{space 1}    3.37{col 53}{space 3}0.001{col 61}{space 4} .1234076{col 74}{space 3} .4672661
{txt}{space 19} {c |}
{space 6}1.postsub2af9 {c |}{col 21}{res}{space 2} .1763596{col 33}{space 2} .0760533{col 44}{space 1}    2.32{col 53}{space 3}0.020{col 61}{space 4} .0272826{col 74}{space 3} .3254367
{txt}{space 19} {c |}
postsub2af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.1704225{col 33}{space 2} .0915489{col 44}{space 1}   -1.86{col 53}{space 3}0.063{col 61}{space 4}-.3498735{col 74}{space 3} .0090285
{txt}{space 19} {c |}
{space 6}1.postsub3af9 {c |}{col 21}{res}{space 2} -.191984{col 33}{space 2} .0856457{col 44}{space 1}   -2.24{col 53}{space 3}0.025{col 61}{space 4}-.3598638{col 74}{space 3}-.0241042
{txt}{space 19} {c |}
postsub3af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .2118426{col 33}{space 2} .0959339{col 44}{space 1}    2.21{col 53}{space 3}0.027{col 61}{space 4} .0237962{col 74}{space 3}  .399889
{txt}{space 19} {c |}
{space 15}mage {c |}{col 21}{res}{space 2}-.0029092{col 33}{space 2} .0003155{col 44}{space 1}   -9.22{col 53}{space 3}0.000{col 61}{space 4}-.0035276{col 74}{space 3}-.0022909
{txt}{space 14}mage2 {c |}{col 21}{res}{space 2} .0000213{col 33}{space 2} 3.47e-06{col 44}{space 1}    6.14{col 53}{space 3}0.000{col 61}{space 4} .0000145{col 74}{space 3} .0000281
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0422576{col 33}{space 2} .0053269{col 44}{space 1}    7.93{col 53}{space 3}0.000{col 61}{space 4} .0318159{col 74}{space 3} .0526993
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu
{txt}
{com}.                 generate samples = e(sample)
{txt}
{com}.                 codebook id if samples

{txt}{hline}
{res}id{right:(unlabeled)}
{txt}{hline}

{col 19}Type: String ({res}str11{txt})

{col 10}Unique values: {res}11,692{col 51}{txt}Missing "": {res}0{txt}/{res}537,385

{txt}{col 15}Examples: {res}"27608490"
{col 25}"37374549"
{col 25}"58629776"
{col 25}"75437788"
{txt}
{com}.                 codebook id if samples & treataf==1

{txt}{hline}
{res}id{right:(unlabeled)}
{txt}{hline}

{col 19}Type: String ({res}str11{txt})

{col 10}Unique values: {res}2,938{col 51}{txt}Missing "": {res}0{txt}/{res}121,535

{txt}{col 15}Examples: {res}"53251042"
{col 25}"62758713"
{col 25}"74683891"
{col 25}"83632667"
{txt}
{com}.                                 
.                                 
.                 ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1af9])*(1+exp(_b[1.presub2af9]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9])*exp(_b[1.postsub1af9])*(1+exp(_b[1.postsub2af9]))-2)), post;

     {txt}program: {res}1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1af9])*(1+exp(_b[1.presub2af9]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9])*exp(_b[1.postsub1af9])*(1+exp(_b[1.postsub2af9]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .8809892{col 26}{space 2}  .208644{col 37}{space 1}    4.22{col 46}{space 3}0.000{col 54}{space 4} .4720545{col 67}{space 3} 1.289924
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.1580646{col 26}{space 2} .0431024{col 37}{space 1}   -3.67{col 46}{space 3}0.000{col 54}{space 4}-.2425437{col 67}{space 3}-.0735854
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .7365274{col 26}{space 2} .2395294{col 37}{space 1}    3.07{col 46}{space 3}0.002{col 54}{space 4} .2670584{col 67}{space 3} 1.205996
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.170221{col 26}{space 2}  .327437{col 37}{space 1}    3.57{col 46}{space 3}0.000{col 54}{space 4} .5284558{col 67}{space 3} 1.811985
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost
.                 nlcom           1000*2700613/((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*63.16), level(90)

       {txt}_nl_1: {res}1000*2700613/((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*63.16)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 129.2545{col 26}{space 2} 36.16643{col 37}{space 1}    3.57{col 46}{space 3}0.000{col 54}{space 4}   69.766{col 67}{space 3}  188.743
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost (25th percentile)
.                 nlcom           1000*2700613/((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*95.99), level(90)

       {txt}_nl_1: {res}1000*2700613/((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*95.99)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 85.04754{col 26}{space 2} 23.79698{col 37}{space 1}    3.57{col 46}{space 3}0.000{col 54}{space 4}   45.905{col 67}{space 3} 124.1901
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost (10th percentile)
.                 nlcom           1000*2700613/((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*137.99), level(90)

       {txt}_nl_1: {res}1000*2700613/((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*137.99)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 59.16163{col 26}{space 2} 16.55389{col 37}{space 1}    3.57{col 46}{space 3}0.000{col 54}{space 4}  31.9329{col 67}{space 3} 86.39037
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.                 ***Energy savings in MWh
.                 nlcom           ((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*63.16)/1000, level(90)

       {txt}_nl_1: {res}((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*63.16)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 20893.77{col 26}{space 2} 5846.242{col 37}{space 1}    3.57{col 46}{space 3}0.000{col 54}{space 4} 11277.55{col 67}{space 3} 30509.98
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
. ***UNIT SALES, SUBSIDIZED (CY-fixed effects)
. 
. reghdfe dlogunits i.presub3af9##ib1.treataf i.presub2af9##ib1.treataf i.presub1af9##ib1.treataf i.sub1af9##ib1.treataf i.sub2af9##ib1.treataf i.sub3af9##ib1.treataf i.sub4af9##ib1.treataf i.postsub1af9##ib1.treataf i.postsub2af9##ib1.treataf i.postsub3af9##ib1.treataf  mage mage2 , absorb(id2 cmt cy) cluster(id) 
{res}{txt}(dropped 212751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 16 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 3 HDFE groups{col 51}F({res}  22{txt},{res}  11691{txt}){col 67}= {res}     14.67
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4456
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0845
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0008
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6954

{txt}{ralign 85:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}          dlogunits{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}1.presub3af9 {c |}{col 21}{res}{space 2}-.2112448{col 33}{space 2} .0614335{col 44}{space 1}   -3.44{col 53}{space 3}0.001{col 61}{space 4}-.3316647{col 74}{space 3}-.0908249
{txt}{space 10}0.treataf {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
{space 1}presub3af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}  .288585{col 33}{space 2} .0653107{col 44}{space 1}    4.42{col 53}{space 3}0.000{col 61}{space 4} .1605651{col 74}{space 3} .4166049
{txt}{space 19} {c |}
{space 7}1.presub2af9 {c |}{col 21}{res}{space 2}-.1039463{col 33}{space 2} .0866032{col 44}{space 1}   -1.20{col 53}{space 3}0.230{col 61}{space 4}-.2737031{col 74}{space 3} .0658104
{txt}{space 19} {c |}
{space 1}presub2af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .1363647{col 33}{space 2} .0946646{col 44}{space 1}    1.44{col 53}{space 3}0.150{col 61}{space 4}-.0491938{col 74}{space 3} .3219231
{txt}{space 19} {c |}
{space 7}1.presub1af9 {c |}{col 21}{res}{space 2} -.120728{col 33}{space 2} .0440167{col 44}{space 1}   -2.74{col 53}{space 3}0.006{col 61}{space 4} -.207008{col 74}{space 3} -.034448
{txt}{space 19} {c |}
{space 1}presub1af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .0723609{col 33}{space 2} .0488339{col 44}{space 1}    1.48{col 53}{space 3}0.138{col 61}{space 4}-.0233616{col 74}{space 3} .1680835
{txt}{space 19} {c |}
{space 10}1.sub1af9 {c |}{col 21}{res}{space 2}  .824714{col 33}{space 2} .0885011{col 44}{space 1}    9.32{col 53}{space 3}0.000{col 61}{space 4} .6512371{col 74}{space 3}  .998191
{txt}{space 19} {c |}
{space 4}sub1af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} -.750704{col 33}{space 2} .0969067{col 44}{space 1}   -7.75{col 53}{space 3}0.000{col 61}{space 4}-.9406572{col 74}{space 3}-.5607507
{txt}{space 19} {c |}
{space 10}1.sub2af9 {c |}{col 21}{res}{space 2}-.1857372{col 33}{space 2}  .058111{col 44}{space 1}   -3.20{col 53}{space 3}0.001{col 61}{space 4}-.2996445{col 74}{space 3}-.0718299
{txt}{space 19} {c |}
{space 4}sub2af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .1436503{col 33}{space 2} .0640796{col 44}{space 1}    2.24{col 53}{space 3}0.025{col 61}{space 4} .0180436{col 74}{space 3} .2692569
{txt}{space 19} {c |}
{space 10}1.sub3af9 {c |}{col 21}{res}{space 2} .3385988{col 33}{space 2} .0902879{col 44}{space 1}    3.75{col 53}{space 3}0.000{col 61}{space 4} .1616195{col 74}{space 3} .5155782
{txt}{space 19} {c |}
{space 4}sub3af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.2321875{col 33}{space 2} .1043169{col 44}{space 1}   -2.23{col 53}{space 3}0.026{col 61}{space 4} -.436666{col 74}{space 3} -.027709
{txt}{space 19} {c |}
{space 10}1.sub4af9 {c |}{col 21}{res}{space 2}-.0180053{col 33}{space 2} .0580634{col 44}{space 1}   -0.31{col 53}{space 3}0.756{col 61}{space 4}-.1318192{col 74}{space 3} .0958085
{txt}{space 19} {c |}
{space 4}sub4af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.0302209{col 33}{space 2} .0652242{col 44}{space 1}   -0.46{col 53}{space 3}0.643{col 61}{space 4}-.1580713{col 74}{space 3} .0976294
{txt}{space 19} {c |}
{space 6}1.postsub1af9 {c |}{col 21}{res}{space 2}-.2850891{col 33}{space 2} .0763229{col 44}{space 1}   -3.74{col 53}{space 3}0.000{col 61}{space 4}-.4346946{col 74}{space 3}-.1354835
{txt}{space 19} {c |}
postsub1af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .3003276{col 33}{space 2} .0878343{col 44}{space 1}    3.42{col 53}{space 3}0.001{col 61}{space 4} .1281576{col 74}{space 3} .4724975
{txt}{space 19} {c |}
{space 6}1.postsub2af9 {c |}{col 21}{res}{space 2} .1760278{col 33}{space 2}  .076771{col 44}{space 1}    2.29{col 53}{space 3}0.022{col 61}{space 4} .0255438{col 74}{space 3} .3265118
{txt}{space 19} {c |}
postsub2af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.1731391{col 33}{space 2} .0916916{col 44}{space 1}   -1.89{col 53}{space 3}0.059{col 61}{space 4}  -.35287{col 74}{space 3} .0065917
{txt}{space 19} {c |}
{space 6}1.postsub3af9 {c |}{col 21}{res}{space 2}-.1920654{col 33}{space 2} .0870709{col 44}{space 1}   -2.21{col 53}{space 3}0.027{col 61}{space 4} -.362739{col 74}{space 3}-.0213918
{txt}{space 19} {c |}
postsub3af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .2091444{col 33}{space 2} .0959728{col 44}{space 1}    2.18{col 53}{space 3}0.029{col 61}{space 4} .0210217{col 74}{space 3} .3972671
{txt}{space 19} {c |}
{space 15}mage {c |}{col 21}{res}{space 2}-.0033062{col 33}{space 2} .0003288{col 44}{space 1}  -10.06{col 53}{space 3}0.000{col 61}{space 4}-.0039507{col 74}{space 3}-.0026618
{txt}{space 14}mage2 {c |}{col 21}{res}{space 2} .0000254{col 33}{space 2} 3.65e-06{col 44}{space 1}    6.97{col 53}{space 3}0.000{col 61}{space 4} .0000183{col 74}{space 3} .0000326
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0488175{col 33}{space 2}  .005522{col 44}{space 1}    8.84{col 53}{space 3}0.000{col 61}{space 4} .0379934{col 74}{space 3} .0596416
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}          cy{col 14}{c |}{space 1}      108{col 27}{space 1}        8{col 39}{result}{space 1}      100{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}.                         
. est store subu_cy                               
{txt}
{com}. ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1af9])*(1+exp(_b[1.presub2af9]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9])*exp(_b[1.postsub1af9])*(1+exp(_b[1.postsub2af9]))-2)), post;

     {txt}program: {res}1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1af9])*(1+exp(_b[1.presub2af9]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9])*exp(_b[1.postsub1af9])*(1+exp(_b[1.postsub2af9]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .8859805{col 26}{space 2} .2274413{col 37}{space 1}    3.90{col 46}{space 3}0.000{col 54}{space 4} .4402037{col 67}{space 3} 1.331757
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.1574743{col 26}{space 2} .0451229{col 37}{space 1}   -3.49{col 46}{space 3}0.000{col 54}{space 4}-.2459136{col 67}{space 3}-.0690351
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .7189077{col 26}{space 2} .2613102{col 37}{space 1}    2.75{col 46}{space 3}0.006{col 54}{space 4} .2067491{col 67}{space 3} 1.231066
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.166697{col 26}{space 2} .3596895{col 37}{space 1}    3.24{col 46}{space 3}0.001{col 54}{space 4} .4617187{col 67}{space 3} 1.871676
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost
.                 nlcom           1000*2700613/((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*63.16), level(90)

       {txt}_nl_1: {res}1000*2700613/((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*63.16)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 129.6448{col 26}{space 2} 39.96914{col 37}{space 1}    3.24{col 46}{space 3}0.001{col 54}{space 4} 63.90144{col 67}{space 3} 195.3882
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.                 ***Energy savings in MWh
.                 nlcom           ((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*63.16)/1000, level(90)

       {txt}_nl_1: {res}((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*63.16)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 20830.86{col 26}{space 2} 6422.096{col 37}{space 1}    3.24{col 46}{space 3}0.001{col 54}{space 4} 10267.45{col 67}{space 3} 31394.26
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
. ***UNIT SALES, SUBSIDIZED (country-specific linear date trends)
. 
. reghdfe dlogunits i.presub3af9##ib1.treataf i.presub2af9##ib1.treataf i.presub1af9##ib1.treataf i.sub1af9##ib1.treataf i.sub2af9##ib1.treataf i.sub3af9##ib1.treataf i.sub4af9##ib1.treataf i.postsub1af9##ib1.treataf i.postsub2af9##ib1.treataf i.postsub3af9##ib1.treataf  mage mage2 , absorb(id2 cmt i.c#c.date) cluster(id) 
{res}{txt}(dropped 212751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 41 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 3 HDFE groups{col 51}F({res}  22{txt},{res}  11691{txt}){col 67}= {res}     14.35
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4454
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0845
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0008
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6954

{txt}{ralign 85:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}          dlogunits{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}1.presub3af9 {c |}{col 21}{res}{space 2} -.201141{col 33}{space 2} .0599372{col 44}{space 1}   -3.36{col 53}{space 3}0.001{col 61}{space 4}-.3186279{col 74}{space 3}-.0836541
{txt}{space 10}0.treataf {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
{space 1}presub3af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .2897135{col 33}{space 2} .0651764{col 44}{space 1}    4.45{col 53}{space 3}0.000{col 61}{space 4} .1619568{col 74}{space 3} .4174701
{txt}{space 19} {c |}
{space 7}1.presub2af9 {c |}{col 21}{res}{space 2}-.0935889{col 33}{space 2} .0862847{col 44}{space 1}   -1.08{col 53}{space 3}0.278{col 61}{space 4}-.2627214{col 74}{space 3} .0755435
{txt}{space 19} {c |}
{space 1}presub2af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .1370863{col 33}{space 2} .0946233{col 44}{space 1}    1.45{col 53}{space 3}0.147{col 61}{space 4}-.0483911{col 74}{space 3} .3225638
{txt}{space 19} {c |}
{space 7}1.presub1af9 {c |}{col 21}{res}{space 2}-.1100578{col 33}{space 2} .0425061{col 44}{space 1}   -2.59{col 53}{space 3}0.010{col 61}{space 4}-.1933769{col 74}{space 3}-.0267386
{txt}{space 19} {c |}
{space 1}presub1af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .0732954{col 33}{space 2} .0487938{col 44}{space 1}    1.50{col 53}{space 3}0.133{col 61}{space 4}-.0223485{col 74}{space 3} .1689393
{txt}{space 19} {c |}
{space 10}1.sub1af9 {c |}{col 21}{res}{space 2}  .834842{col 33}{space 2} .0879878{col 44}{space 1}    9.49{col 53}{space 3}0.000{col 61}{space 4} .6623713{col 74}{space 3} 1.007313
{txt}{space 19} {c |}
{space 4}sub1af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.7494613{col 33}{space 2} .0969254{col 44}{space 1}   -7.73{col 53}{space 3}0.000{col 61}{space 4}-.9394514{col 74}{space 3}-.5594713
{txt}{space 19} {c |}
{space 10}1.sub2af9 {c |}{col 21}{res}{space 2}-.1752903{col 33}{space 2} .0570452{col 44}{space 1}   -3.07{col 53}{space 3}0.002{col 61}{space 4}-.2871084{col 74}{space 3}-.0634722
{txt}{space 19} {c |}
{space 4}sub2af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .1446205{col 33}{space 2} .0640063{col 44}{space 1}    2.26{col 53}{space 3}0.024{col 61}{space 4} .0191575{col 74}{space 3} .2700836
{txt}{space 19} {c |}
{space 10}1.sub3af9 {c |}{col 21}{res}{space 2} .3489875{col 33}{space 2} .0896511{col 44}{space 1}    3.89{col 53}{space 3}0.000{col 61}{space 4} .1732564{col 74}{space 3} .5247186
{txt}{space 19} {c |}
{space 4}sub3af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.2309327{col 33}{space 2} .1041946{col 44}{space 1}   -2.22{col 53}{space 3}0.027{col 61}{space 4}-.4351716{col 74}{space 3}-.0266939
{txt}{space 19} {c |}
{space 10}1.sub4af9 {c |}{col 21}{res}{space 2} -.007642{col 33}{space 2} .0569093{col 44}{space 1}   -0.13{col 53}{space 3}0.893{col 61}{space 4}-.1191938{col 74}{space 3} .1039097
{txt}{space 19} {c |}
{space 4}sub4af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.0284855{col 33}{space 2} .0651176{col 44}{space 1}   -0.44{col 53}{space 3}0.662{col 61}{space 4}-.1561268{col 74}{space 3} .0991558
{txt}{space 19} {c |}
{space 6}1.postsub1af9 {c |}{col 21}{res}{space 2}-.2611647{col 33}{space 2} .0755782{col 44}{space 1}   -3.46{col 53}{space 3}0.001{col 61}{space 4}-.4093106{col 74}{space 3}-.1130188
{txt}{space 19} {c |}
postsub1af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .2881693{col 33}{space 2} .0877193{col 44}{space 1}    3.29{col 53}{space 3}0.001{col 61}{space 4} .1162249{col 74}{space 3} .4601136
{txt}{space 19} {c |}
{space 6}1.postsub2af9 {c |}{col 21}{res}{space 2} .1849964{col 33}{space 2} .0760708{col 44}{space 1}    2.43{col 53}{space 3}0.015{col 61}{space 4} .0358849{col 74}{space 3} .3341078
{txt}{space 19} {c |}
postsub2af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.1775543{col 33}{space 2}  .091555{col 44}{space 1}   -1.94{col 53}{space 3}0.052{col 61}{space 4}-.3570174{col 74}{space 3} .0019088
{txt}{space 19} {c |}
{space 6}1.postsub3af9 {c |}{col 21}{res}{space 2}-.1829607{col 33}{space 2} .0857596{col 44}{space 1}   -2.13{col 53}{space 3}0.033{col 61}{space 4}-.3510638{col 74}{space 3}-.0148575
{txt}{space 19} {c |}
postsub3af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .2051113{col 33}{space 2} .0960028{col 44}{space 1}    2.14{col 53}{space 3}0.033{col 61}{space 4} .0169298{col 74}{space 3} .3932928
{txt}{space 19} {c |}
{space 15}mage {c |}{col 21}{res}{space 2}-.0030212{col 33}{space 2} .0003172{col 44}{space 1}   -9.53{col 53}{space 3}0.000{col 61}{space 4}-.0036429{col 74}{space 3}-.0023995
{txt}{space 14}mage2 {c |}{col 21}{res}{space 2} .0000223{col 33}{space 2} 3.47e-06{col 44}{space 1}    6.42{col 53}{space 3}0.000{col 61}{space 4} .0000155{col 74}{space 3} .0000291
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0442197{col 33}{space 2} .0053903{col 44}{space 1}    8.20{col 53}{space 3}0.000{col 61}{space 4} .0336538{col 74}{space 3} .0547857
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}    c#c.date{col 14}{c |}{space 1}        8{col 27}{space 1}        0{col 39}{result}{space 1}        8{col 53}{text}?{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}.                         
. est store subu_trends                           
{txt}
{com}. ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1af9])*(1+exp(_b[1.presub2af9]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9])*exp(_b[1.postsub1af9])*(1+exp(_b[1.postsub2af9]))-2)), post;

     {txt}program: {res}1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1af9])*(1+exp(_b[1.presub2af9]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9])*exp(_b[1.postsub1af9])*(1+exp(_b[1.postsub2af9]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .9783357{col 26}{space 2} .2207668{col 37}{space 1}    4.43{col 46}{space 3}0.000{col 54}{space 4} .5456408{col 67}{space 3} 1.411031
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.1442335{col 26}{space 2} .0440685{col 37}{space 1}   -3.27{col 46}{space 3}0.001{col 54}{space 4}-.2306062{col 67}{space 3}-.0578608
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .8829803{col 26}{space 2} .2614169{col 37}{space 1}    3.38{col 46}{space 3}0.001{col 54}{space 4} .3706127{col 67}{space 3} 1.395348
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.347709{col 26}{space 2} .3500274{col 37}{space 1}    3.85{col 46}{space 3}0.000{col 54}{space 4}  .661668{col 67}{space 3}  2.03375
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost
.                 nlcom           1000*2700613/((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*63.16), level(90)

       {txt}_nl_1: {res}1000*2700613/((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*63.16)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 112.2321{col 26}{space 2} 29.14896{col 37}{space 1}    3.85{col 46}{space 3}0.000{col 54}{space 4} 64.28636{col 67}{space 3} 160.1779
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.                 ***Energy savings in MWh
.                 nlcom           ((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*63.16)/1000, level(90)             

       {txt}_nl_1: {res}((_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift])*15704.87*18*63.16)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 24062.74{col 26}{space 2} 6249.583{col 37}{space 1}    3.85{col 46}{space 3}0.000{col 54}{space 4}  13783.1{col 67}{space 3} 34342.39
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
. ***UNIT SALES, SUBSIDIZED (response above and below price median)
. reghdfe dlogunits i.presub3af9##ib1.treataf##ib1.medprice i.presub2af9##ib1.treataf##ib1.medprice i.presub1af9##ib1.treataf##ib1.medprice i.sub1af9##ib1.treataf##ib1.medprice i.sub2af9##ib1.treataf##ib1.medprice i.sub3af9##ib1.treataf##ib1.medprice i.sub4af9##ib1.treataf##ib1.medprice i.postsub1af9##ib1.treataf##ib1.medprice i.postsub2af9##ib1.treataf##ib1.medprice i.postsub3af9##ib1.treataf##ib1.medprice  mage mage2 , absorb(id2 cmt) cluster(id)
{res}{txt}(dropped 212751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.medprice{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treataf#0bn.medprice{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{txt}note: 0.medprice omitted because of collinearity
{txt}note: 0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.presub3af9#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.presub2af9#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.presub1af9#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.sub1af9#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.sub2af9#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.sub3af9#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.sub4af9#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.postsub1af9#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.postsub2af9#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.postsub3af9#0.treataf#0.medprice omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 2 HDFE groups{col 51}F({res}  32{txt},{res}  11691{txt}){col 67}= {res}     10.88
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4454
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0845
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0008
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6954

{txt}{ralign 94:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 29}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 30}{c |}{col 42}    Robust
{col 1}                   dlogunits{col 30}{c |} Coefficient{col 42}  std. err.{col 54}      t{col 62}   P>|t|{col 70}     [95% con{col 83}f. interval]
{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 16}1.presub3af9 {c |}{col 30}{res}{space 2}-.2116142{col 42}{space 2} .0919191{col 53}{space 1}   -2.30{col 62}{space 3}0.021{col 70}{space 4} -.391791{col 83}{space 3}-.0314375
{txt}{space 19}0.treataf {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 28} {c |}
{space 10}presub3af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .2974377{col 42}{space 2} .0714112{col 53}{space 1}    4.17{col 62}{space 3}0.000{col 70}{space 4} .1574599{col 83}{space 3} .4374156
{txt}{space 28} {c |}
{space 18}0.medprice {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 28} {c |}
{space 9}presub3af9#medprice {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}-.0009159{col 42}{space 2} .1101513{col 53}{space 1}   -0.01{col 62}{space 3}0.993{col 70}{space 4}-.2168307{col 83}{space 3}  .214999
{txt}{space 28} {c |}
{space 12}treataf#medprice {c |}
{space 24}0 0  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 24}0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 1}presub3af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 0  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 16}1.presub2af9 {c |}{col 30}{res}{space 2}-.1318975{col 42}{space 2} .1225667{col 53}{space 1}   -1.08{col 62}{space 3}0.282{col 70}{space 4}-.3721488{col 83}{space 3} .1083537
{txt}{space 28} {c |}
{space 10}presub2af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .1079161{col 42}{space 2} .1188472{col 53}{space 1}    0.91{col 62}{space 3}0.364{col 70}{space 4}-.1250443{col 83}{space 3} .3408765
{txt}{space 28} {c |}
{space 9}presub2af9#medprice {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .0631285{col 42}{space 2} .1637412{col 53}{space 1}    0.39{col 62}{space 3}0.700{col 70}{space 4}-.2578316{col 83}{space 3} .3840886
{txt}{space 28} {c |}
{space 1}presub2af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 0  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 16}1.presub1af9 {c |}{col 30}{res}{space 2}-.1294415{col 42}{space 2} .0533819{col 53}{space 1}   -2.42{col 62}{space 3}0.015{col 70}{space 4} -.234079{col 83}{space 3} -.024804
{txt}{space 28} {c |}
{space 10}presub1af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .0675574{col 42}{space 2} .0676866{col 53}{space 1}    1.00{col 62}{space 3}0.318{col 70}{space 4}-.0651197{col 83}{space 3} .2002346
{txt}{space 28} {c |}
{space 9}presub1af9#medprice {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .0218589{col 42}{space 2} .0794218{col 53}{space 1}    0.28{col 62}{space 3}0.783{col 70}{space 4} -.133821{col 83}{space 3} .1775389
{txt}{space 28} {c |}
{space 1}presub1af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 0  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 19}1.sub1af9 {c |}{col 30}{res}{space 2} .6575271{col 42}{space 2}   .11581{col 53}{space 1}    5.68{col 62}{space 3}0.000{col 70}{space 4} .4305202{col 83}{space 3}  .884534
{txt}{space 28} {c |}
{space 13}sub1af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}-1.020947{col 42}{space 2} .1302584{col 53}{space 1}   -7.84{col 62}{space 3}0.000{col 70}{space 4}-1.276275{col 83}{space 3}-.7656192
{txt}{space 28} {c |}
{space 12}sub1af9#medprice {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .4448896{col 42}{space 2}   .16805{col 53}{space 1}    2.65{col 62}{space 3}0.008{col 70}{space 4} .1154835{col 83}{space 3} .7742956
{txt}{space 28} {c |}
{space 4}sub1af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 0  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 19}1.sub2af9 {c |}{col 30}{res}{space 2}-.1482183{col 42}{space 2} .0720097{col 53}{space 1}   -2.06{col 62}{space 3}0.040{col 70}{space 4}-.2893694{col 83}{space 3}-.0070673
{txt}{space 28} {c |}
{space 13}sub2af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .2023655{col 42}{space 2} .0919118{col 53}{space 1}    2.20{col 62}{space 3}0.028{col 70}{space 4}  .022203{col 83}{space 3} .3825279
{txt}{space 28} {c |}
{space 12}sub2af9#medprice {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}-.0878874{col 42}{space 2} .1104008{col 53}{space 1}   -0.80{col 62}{space 3}0.426{col 70}{space 4}-.3042914{col 83}{space 3} .1285166
{txt}{space 28} {c |}
{space 4}sub2af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 0  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 19}1.sub3af9 {c |}{col 30}{res}{space 2} .1984248{col 42}{space 2} .1096942{col 53}{space 1}    1.81{col 62}{space 3}0.070{col 70}{space 4}-.0165941{col 83}{space 3} .4134438
{txt}{space 28} {c |}
{space 13}sub3af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} -.441376{col 42}{space 2} .1538617{col 53}{space 1}   -2.87{col 62}{space 3}0.004{col 70}{space 4}-.7429706{col 83}{space 3}-.1397814
{txt}{space 28} {c |}
{space 12}sub3af9#medprice {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .3571947{col 42}{space 2} .1790308{col 53}{space 1}    2.00{col 62}{space 3}0.046{col 70}{space 4} .0062644{col 83}{space 3}  .708125
{txt}{space 28} {c |}
{space 4}sub3af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 0  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 19}1.sub4af9 {c |}{col 30}{res}{space 2} .0154632{col 42}{space 2} .0734064{col 53}{space 1}    0.21{col 62}{space 3}0.833{col 70}{space 4}-.1284255{col 83}{space 3}  .159352
{txt}{space 28} {c |}
{space 13}sub4af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}   .02666{col 42}{space 2} .0889489{col 53}{space 1}    0.30{col 62}{space 3}0.764{col 70}{space 4}-.1476947{col 83}{space 3} .2010148
{txt}{space 28} {c |}
{space 12}sub4af9#medprice {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}-.0811046{col 42}{space 2} .1072438{col 53}{space 1}   -0.76{col 62}{space 3}0.450{col 70}{space 4}-.2913204{col 83}{space 3} .1291112
{txt}{space 28} {c |}
{space 4}sub4af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 0  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 15}1.postsub1af9 {c |}{col 30}{res}{space 2}-.2839449{col 42}{space 2} .1005961{col 53}{space 1}   -2.82{col 62}{space 3}0.005{col 70}{space 4}-.4811302{col 83}{space 3}-.0867597
{txt}{space 28} {c |}
{space 9}postsub1af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}  .277869{col 42}{space 2} .1185356{col 53}{space 1}    2.34{col 62}{space 3}0.019{col 70}{space 4} .0455194{col 83}{space 3} .5102185
{txt}{space 28} {c |}
{space 8}postsub1af9#medprice {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .0294157{col 42}{space 2}  .146873{col 53}{space 1}    0.20{col 62}{space 3}0.841{col 70}{space 4}-.2584799{col 83}{space 3} .3173112
{txt}{space 28} {c |}
postsub1af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 0  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 15}1.postsub2af9 {c |}{col 30}{res}{space 2} .1100335{col 42}{space 2} .0988067{col 53}{space 1}    1.11{col 62}{space 3}0.265{col 70}{space 4}-.0836442{col 83}{space 3} .3037113
{txt}{space 28} {c |}
{space 9}postsub2af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}-.2633447{col 42}{space 2} .1241186{col 53}{space 1}   -2.12{col 62}{space 3}0.034{col 70}{space 4}-.5066379{col 83}{space 3}-.0200515
{txt}{space 28} {c |}
{space 8}postsub2af9#medprice {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}  .159248{col 42}{space 2} .1473288{col 53}{space 1}    1.08{col 62}{space 3}0.280{col 70}{space 4} -.129541{col 83}{space 3}  .448037
{txt}{space 28} {c |}
postsub2af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 0  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 15}1.postsub3af9 {c |}{col 30}{res}{space 2}-.1465793{col 42}{space 2} .1193998{col 53}{space 1}   -1.23{col 62}{space 3}0.220{col 70}{space 4}-.3806228{col 83}{space 3} .0874642
{txt}{space 28} {c |}
{space 9}postsub3af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .2697111{col 42}{space 2} .1263586{col 53}{space 1}    2.13{col 62}{space 3}0.033{col 70}{space 4} .0220271{col 83}{space 3}  .517395
{txt}{space 28} {c |}
{space 8}postsub3af9#medprice {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}-.1032736{col 42}{space 2} .1668263{col 53}{space 1}   -0.62{col 62}{space 3}0.536{col 70}{space 4}-.4302809{col 83}{space 3} .2237338
{txt}{space 28} {c |}
postsub3af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 0  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 24}mage {c |}{col 30}{res}{space 2}-.0029068{col 42}{space 2} .0003154{col 53}{space 1}   -9.22{col 62}{space 3}0.000{col 70}{space 4} -.003525{col 83}{space 3}-.0022887
{txt}{space 23}mage2 {c |}{col 30}{res}{space 2} .0000213{col 42}{space 2} 3.47e-06{col 53}{space 1}    6.14{col 62}{space 3}0.000{col 70}{space 4} .0000145{col 83}{space 3} .0000281
{txt}{space 23}_cons {c |}{col 30}{res}{space 2} .0422106{col 42}{space 2} .0053258{col 53}{space 1}    7.93{col 62}{space 3}0.000{col 70}{space 4} .0317711{col 83}{space 3} .0526502
{txt}{hline 29}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. 
. est store subu_above
{txt}
{com}. 
. 
. reghdfe dlogunits i.presub3af9##ib1.treataf##ib0.medprice i.presub2af9##ib1.treataf##ib0.medprice i.presub1af9##ib1.treataf##ib0.medprice i.sub1af9##ib1.treataf##ib0.medprice i.sub2af9##ib1.treataf##ib0.medprice i.sub3af9##ib1.treataf##ib0.medprice i.sub4af9##ib1.treataf##ib0.medprice i.postsub1af9##ib1.treataf##ib0.medprice i.postsub2af9##ib1.treataf##ib0.medprice i.postsub3af9##ib1.treataf##ib0.medprice  mage mage2 , absorb(id2 cmt) cluster(id)
{res}{txt}(dropped 212751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.medprice{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{txt}note: 1.medprice omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 2 HDFE groups{col 51}F({res}  32{txt},{res}  11691{txt}){col 67}= {res}     10.88
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4454
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0845
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0008
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6954

{txt}{ralign 94:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 29}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 30}{c |}{col 42}    Robust
{col 1}                   dlogunits{col 30}{c |} Coefficient{col 42}  std. err.{col 54}      t{col 62}   P>|t|{col 70}     [95% con{col 83}f. interval]
{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 16}1.presub3af9 {c |}{col 30}{res}{space 2}-.2125301{col 42}{space 2} .0666402{col 53}{space 1}   -3.19{col 62}{space 3}0.001{col 70}{space 4}-.3431559{col 83}{space 3}-.0819043
{txt}{space 19}0.treataf {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 28} {c |}
{space 10}presub3af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .2974377{col 42}{space 2} .0714112{col 53}{space 1}    4.17{col 62}{space 3}0.000{col 70}{space 4} .1574599{col 83}{space 3} .4374156
{txt}{space 28} {c |}
{space 18}1.medprice {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 28} {c |}
{space 9}presub3af9#medprice {c |}
{space 24}1 1  {c |}{col 30}{res}{space 2} .0009159{col 42}{space 2} .1101513{col 53}{space 1}    0.01{col 62}{space 3}0.993{col 70}{space 4} -.214999{col 83}{space 3} .2168307
{txt}{space 28} {c |}
{space 12}treataf#medprice {c |}
{space 24}0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 1}presub3af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 16}1.presub2af9 {c |}{col 30}{res}{space 2} -.068769{col 42}{space 2} .1122791{col 53}{space 1}   -0.61{col 62}{space 3}0.540{col 70}{space 4}-.2888549{col 83}{space 3} .1513168
{txt}{space 28} {c |}
{space 10}presub2af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .1079161{col 42}{space 2} .1188472{col 53}{space 1}    0.91{col 62}{space 3}0.364{col 70}{space 4}-.1250443{col 83}{space 3} .3408765
{txt}{space 28} {c |}
{space 9}presub2af9#medprice {c |}
{space 24}1 1  {c |}{col 30}{res}{space 2}-.0631285{col 42}{space 2} .1637412{col 53}{space 1}   -0.39{col 62}{space 3}0.700{col 70}{space 4}-.3840886{col 83}{space 3} .2578316
{txt}{space 28} {c |}
{space 1}presub2af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 16}1.presub1af9 {c |}{col 30}{res}{space 2}-.1075826{col 42}{space 2} .0632951{col 53}{space 1}   -1.70{col 62}{space 3}0.089{col 70}{space 4}-.2316516{col 83}{space 3} .0164864
{txt}{space 28} {c |}
{space 10}presub1af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .0675574{col 42}{space 2} .0676866{col 53}{space 1}    1.00{col 62}{space 3}0.318{col 70}{space 4}-.0651197{col 83}{space 3} .2002346
{txt}{space 28} {c |}
{space 9}presub1af9#medprice {c |}
{space 24}1 1  {c |}{col 30}{res}{space 2}-.0218589{col 42}{space 2} .0794218{col 53}{space 1}   -0.28{col 62}{space 3}0.783{col 70}{space 4}-.1775389{col 83}{space 3}  .133821
{txt}{space 28} {c |}
{space 1}presub1af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 19}1.sub1af9 {c |}{col 30}{res}{space 2} 1.102417{col 42}{space 2} .1237487{col 53}{space 1}    8.91{col 62}{space 3}0.000{col 70}{space 4} .8598486{col 83}{space 3} 1.344985
{txt}{space 28} {c |}
{space 13}sub1af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}-1.020947{col 42}{space 2} .1302584{col 53}{space 1}   -7.84{col 62}{space 3}0.000{col 70}{space 4}-1.276275{col 83}{space 3}-.7656192
{txt}{space 28} {c |}
{space 12}sub1af9#medprice {c |}
{space 24}1 1  {c |}{col 30}{res}{space 2}-.4448896{col 42}{space 2}   .16805{col 53}{space 1}   -2.65{col 62}{space 3}0.008{col 70}{space 4}-.7742956{col 83}{space 3}-.1154835
{txt}{space 28} {c |}
{space 4}sub1af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 19}1.sub2af9 {c |}{col 30}{res}{space 2}-.2361058{col 42}{space 2} .0871892{col 53}{space 1}   -2.71{col 62}{space 3}0.007{col 70}{space 4}-.4070111{col 83}{space 3}-.0652005
{txt}{space 28} {c |}
{space 13}sub2af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .2023655{col 42}{space 2} .0919118{col 53}{space 1}    2.20{col 62}{space 3}0.028{col 70}{space 4}  .022203{col 83}{space 3} .3825279
{txt}{space 28} {c |}
{space 12}sub2af9#medprice {c |}
{space 24}1 1  {c |}{col 30}{res}{space 2} .0878874{col 42}{space 2} .1104008{col 53}{space 1}    0.80{col 62}{space 3}0.426{col 70}{space 4}-.1285166{col 83}{space 3} .3042914
{txt}{space 28} {c |}
{space 4}sub2af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 19}1.sub3af9 {c |}{col 30}{res}{space 2} .5556195{col 42}{space 2} .1444061{col 53}{space 1}    3.85{col 62}{space 3}0.000{col 70}{space 4} .2725594{col 83}{space 3} .8386796
{txt}{space 28} {c |}
{space 13}sub3af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} -.441376{col 42}{space 2} .1538617{col 53}{space 1}   -2.87{col 62}{space 3}0.004{col 70}{space 4}-.7429706{col 83}{space 3}-.1397814
{txt}{space 28} {c |}
{space 12}sub3af9#medprice {c |}
{space 24}1 1  {c |}{col 30}{res}{space 2}-.3571947{col 42}{space 2} .1790308{col 53}{space 1}   -2.00{col 62}{space 3}0.046{col 70}{space 4} -.708125{col 83}{space 3}-.0062644
{txt}{space 28} {c |}
{space 4}sub3af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 19}1.sub4af9 {c |}{col 30}{res}{space 2}-.0656414{col 42}{space 2} .0831256{col 53}{space 1}   -0.79{col 62}{space 3}0.430{col 70}{space 4}-.2285814{col 83}{space 3} .0972987
{txt}{space 28} {c |}
{space 13}sub4af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}   .02666{col 42}{space 2} .0889489{col 53}{space 1}    0.30{col 62}{space 3}0.764{col 70}{space 4}-.1476947{col 83}{space 3} .2010148
{txt}{space 28} {c |}
{space 12}sub4af9#medprice {c |}
{space 24}1 1  {c |}{col 30}{res}{space 2} .0811046{col 42}{space 2} .1072438{col 53}{space 1}    0.76{col 62}{space 3}0.450{col 70}{space 4}-.1291112{col 83}{space 3} .2913204
{txt}{space 28} {c |}
{space 4}sub4af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 15}1.postsub1af9 {c |}{col 30}{res}{space 2}-.2545293{col 42}{space 2} .1098395{col 53}{space 1}   -2.32{col 62}{space 3}0.021{col 70}{space 4} -.469833{col 83}{space 3}-.0392255
{txt}{space 28} {c |}
{space 9}postsub1af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}  .277869{col 42}{space 2} .1185356{col 53}{space 1}    2.34{col 62}{space 3}0.019{col 70}{space 4} .0455194{col 83}{space 3} .5102185
{txt}{space 28} {c |}
{space 8}postsub1af9#medprice {c |}
{space 24}1 1  {c |}{col 30}{res}{space 2}-.0294157{col 42}{space 2}  .146873{col 53}{space 1}   -0.20{col 62}{space 3}0.841{col 70}{space 4}-.3173112{col 83}{space 3} .2584799
{txt}{space 28} {c |}
postsub1af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 15}1.postsub2af9 {c |}{col 30}{res}{space 2} .2692815{col 42}{space 2} .1131734{col 53}{space 1}    2.38{col 62}{space 3}0.017{col 70}{space 4} .0474427{col 83}{space 3} .4911203
{txt}{space 28} {c |}
{space 9}postsub2af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2}-.2633447{col 42}{space 2} .1241186{col 53}{space 1}   -2.12{col 62}{space 3}0.034{col 70}{space 4}-.5066379{col 83}{space 3}-.0200515
{txt}{space 28} {c |}
{space 8}postsub2af9#medprice {c |}
{space 24}1 1  {c |}{col 30}{res}{space 2} -.159248{col 42}{space 2} .1473288{col 53}{space 1}   -1.08{col 62}{space 3}0.280{col 70}{space 4} -.448037{col 83}{space 3}  .129541
{txt}{space 28} {c |}
postsub2af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 15}1.postsub3af9 {c |}{col 30}{res}{space 2}-.2498529{col 42}{space 2} .1187363{col 53}{space 1}   -2.10{col 62}{space 3}0.035{col 70}{space 4}-.4825958{col 83}{space 3}  -.01711
{txt}{space 28} {c |}
{space 9}postsub3af9#treataf {c |}
{space 24}1 0  {c |}{col 30}{res}{space 2} .2697111{col 42}{space 2} .1263586{col 53}{space 1}    2.13{col 62}{space 3}0.033{col 70}{space 4} .0220271{col 83}{space 3}  .517395
{txt}{space 28} {c |}
{space 8}postsub3af9#medprice {c |}
{space 24}1 1  {c |}{col 30}{res}{space 2} .1032736{col 42}{space 2} .1668263{col 53}{space 1}    0.62{col 62}{space 3}0.536{col 70}{space 4}-.2237338{col 83}{space 3} .4302809
{txt}{space 28} {c |}
postsub3af9#treataf#medprice {c |}
{space 22}0 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 22}1 0 1  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (empty)
{space 28} {c |}
{space 24}mage {c |}{col 30}{res}{space 2}-.0029068{col 42}{space 2} .0003154{col 53}{space 1}   -9.22{col 62}{space 3}0.000{col 70}{space 4} -.003525{col 83}{space 3}-.0022887
{txt}{space 23}mage2 {c |}{col 30}{res}{space 2} .0000213{col 42}{space 2} 3.47e-06{col 53}{space 1}    6.14{col 62}{space 3}0.000{col 70}{space 4} .0000145{col 83}{space 3} .0000281
{txt}{space 23}_cons {c |}{col 30}{res}{space 2} .0422106{col 42}{space 2} .0053258{col 53}{space 1}    7.93{col 62}{space 3}0.000{col 70}{space 4} .0317711{col 83}{space 3} .0526502
{txt}{hline 29}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. 
. est store subu_below
{txt}
{com}. 
. 
. esttab   subu subu_above subu_below , se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9) keep(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9) 
{res}
{txt}{hline 60}
{txt}                      (1)             (2)             (3)   
{txt}                     subu      subu_above      subu_below   
{txt}{hline 60}
{txt}1.presub3af9{res}       -0.212***       -0.212**        -0.213***{txt}
            {res} {ralign 12:{txt:(}0.060{txt:)}}    {ralign 12:{txt:(}0.092{txt:)}}    {ralign 12:{txt:(}0.067{txt:)}}   {txt}
{txt}1.presub2af9{res}       -0.105          -0.132          -0.069   {txt}
            {res} {ralign 12:{txt:(}0.086{txt:)}}    {ralign 12:{txt:(}0.123{txt:)}}    {ralign 12:{txt:(}0.112{txt:)}}   {txt}
{txt}1.presub1af9{res}       -0.121***       -0.129**        -0.108*  {txt}
            {res} {ralign 12:{txt:(}0.042{txt:)}}    {ralign 12:{txt:(}0.053{txt:)}}    {ralign 12:{txt:(}0.063{txt:)}}   {txt}
{txt}1.sub1af9   {res}        0.824***        0.658***        1.102***{txt}
            {res} {ralign 12:{txt:(}0.088{txt:)}}    {ralign 12:{txt:(}0.116{txt:)}}    {ralign 12:{txt:(}0.124{txt:)}}   {txt}
{txt}1.sub2af9   {res}       -0.186***       -0.148**        -0.236***{txt}
            {res} {ralign 12:{txt:(}0.057{txt:)}}    {ralign 12:{txt:(}0.072{txt:)}}    {ralign 12:{txt:(}0.087{txt:)}}   {txt}
{txt}1.sub3af9   {res}        0.338***        0.198*          0.556***{txt}
            {res} {ralign 12:{txt:(}0.090{txt:)}}    {ralign 12:{txt:(}0.110{txt:)}}    {ralign 12:{txt:(}0.144{txt:)}}   {txt}
{txt}1.sub4af9   {res}       -0.018           0.015          -0.066   {txt}
            {res} {ralign 12:{txt:(}0.057{txt:)}}    {ralign 12:{txt:(}0.073{txt:)}}    {ralign 12:{txt:(}0.083{txt:)}}   {txt}
{txt}1.postsub1~9{res}       -0.272***       -0.284***       -0.255** {txt}
            {res} {ralign 12:{txt:(}0.076{txt:)}}    {ralign 12:{txt:(}0.101{txt:)}}    {ralign 12:{txt:(}0.110{txt:)}}   {txt}
{txt}1.postsub2~9{res}        0.176**         0.110           0.269** {txt}
            {res} {ralign 12:{txt:(}0.076{txt:)}}    {ralign 12:{txt:(}0.099{txt:)}}    {ralign 12:{txt:(}0.113{txt:)}}   {txt}
{txt}1.postsub3~9{res}       -0.192**        -0.147          -0.250** {txt}
            {res} {ralign 12:{txt:(}0.086{txt:)}}    {ralign 12:{txt:(}0.119{txt:)}}    {ralign 12:{txt:(}0.119{txt:)}}   {txt}
{txt}{hline 60}
{txt}N           {res}       537385          537385          537385   {txt}
{txt}{hline 60}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subu subu_above subu_below  using "R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_09_medianprice.tex", replace  se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9) keep(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9) 
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_09_medianprice.tex"'})

{com}. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++          
. ***UNIT SALES, NON-SUBSIDIZED
. 
. reghdfe dlogunits i.presub3af9##i.treataf i.presub2af9##i.treataf i.presub1af9##i.treataf i.sub1af9##i.treataf i.sub2af9##i.treataf i.sub3af9##i.treataf i.sub4af9##i.treataf i.postsub1af9##i.treataf i.postsub2af9##i.treataf i.postsub3af9##i.treataf  mage mage2 , absorb(id2 cmt) cluster(id)
{res}{txt}(dropped 212751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}{txt}note: 1.treataf omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 2 HDFE groups{col 51}F({res}  22{txt},{res}  11691{txt}){col 67}= {res}     14.10
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4453
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0844
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0007
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6954

{txt}{ralign 85:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}          dlogunits{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}1.presub3af9 {c |}{col 21}{res}{space 2}  .084908{col 33}{space 2} .0256637{col 44}{space 1}    3.31{col 53}{space 3}0.001{col 61}{space 4} .0346029{col 74}{space 3}  .135213
{txt}{space 10}1.treataf {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
{space 1}presub3af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2}-.2969441{col 33}{space 2} .0651447{col 44}{space 1}   -4.56{col 53}{space 3}0.000{col 61}{space 4}-.4246386{col 74}{space 3}-.1692496
{txt}{space 19} {c |}
{space 7}1.presub2af9 {c |}{col 21}{res}{space 2} .0391477{col 33}{space 2} .0389607{col 44}{space 1}    1.00{col 53}{space 3}0.315{col 61}{space 4}-.0372218{col 74}{space 3} .1155171
{txt}{space 19} {c |}
{space 1}presub2af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2}-.1439341{col 33}{space 2} .0946045{col 44}{space 1}   -1.52{col 53}{space 3}0.128{col 61}{space 4}-.3293746{col 74}{space 3} .0415064
{txt}{space 19} {c |}
{space 7}1.presub1af9 {c |}{col 21}{res}{space 2}-.0400247{col 33}{space 2} .0239836{col 44}{space 1}   -1.67{col 53}{space 3}0.095{col 61}{space 4}-.0870367{col 74}{space 3} .0069872
{txt}{space 19} {c |}
{space 1}presub1af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2}-.0810059{col 33}{space 2} .0487567{col 44}{space 1}   -1.66{col 53}{space 3}0.097{col 61}{space 4}-.1765772{col 74}{space 3} .0145654
{txt}{space 19} {c |}
{space 10}1.sub1af9 {c |}{col 21}{res}{space 2} .0814698{col 33}{space 2} .0406616{col 44}{space 1}    2.00{col 53}{space 3}0.045{col 61}{space 4} .0017663{col 74}{space 3} .1611733
{txt}{space 19} {c |}
{space 4}sub1af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2} .7423372{col 33}{space 2} .0969331{col 44}{space 1}    7.66{col 53}{space 3}0.000{col 61}{space 4} .5523321{col 74}{space 3} .9323424
{txt}{space 19} {c |}
{space 10}1.sub2af9 {c |}{col 21}{res}{space 2}-.0337399{col 33}{space 2} .0290831{col 44}{space 1}   -1.16{col 53}{space 3}0.246{col 61}{space 4}-.0907477{col 74}{space 3} .0232679
{txt}{space 19} {c |}
{space 4}sub2af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2}-.1523772{col 33}{space 2} .0640019{col 44}{space 1}   -2.38{col 53}{space 3}0.017{col 61}{space 4}-.2778317{col 74}{space 3}-.0269227
{txt}{space 19} {c |}
{space 10}1.sub3af9 {c |}{col 21}{res}{space 2}  .114244{col 33}{space 2} .0531052{col 44}{space 1}    2.15{col 53}{space 3}0.031{col 61}{space 4}  .010149{col 74}{space 3} .2183391
{txt}{space 19} {c |}
{space 4}sub3af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2} .2238787{col 33}{space 2} .1041754{col 44}{space 1}    2.15{col 53}{space 3}0.032{col 61}{space 4} .0196775{col 74}{space 3} .4280799
{txt}{space 19} {c |}
{space 10}1.sub4af9 {c |}{col 21}{res}{space 2}-.0389808{col 33}{space 2} .0316556{col 44}{space 1}   -1.23{col 53}{space 3}0.218{col 61}{space 4} -.101031{col 74}{space 3} .0230694
{txt}{space 19} {c |}
{space 4}sub4af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2} .0208066{col 33}{space 2} .0651112{col 44}{space 1}    0.32{col 53}{space 3}0.749{col 61}{space 4}-.1068222{col 74}{space 3} .1484353
{txt}{space 19} {c |}
{space 6}1.postsub1af9 {c |}{col 21}{res}{space 2} .0233402{col 33}{space 2} .0445641{col 44}{space 1}    0.52{col 53}{space 3}0.600{col 61}{space 4}-.0640129{col 74}{space 3} .1106933
{txt}{space 19} {c |}
postsub1af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2}-.2953368{col 33}{space 2} .0877115{col 44}{space 1}   -3.37{col 53}{space 3}0.001{col 61}{space 4}-.4672661{col 74}{space 3}-.1234076
{txt}{space 19} {c |}
{space 6}1.postsub2af9 {c |}{col 21}{res}{space 2} .0059371{col 33}{space 2} .0509632{col 44}{space 1}    0.12{col 53}{space 3}0.907{col 61}{space 4}-.0939592{col 74}{space 3} .1058335
{txt}{space 19} {c |}
postsub2af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2} .1704225{col 33}{space 2} .0915489{col 44}{space 1}    1.86{col 53}{space 3}0.063{col 61}{space 4}-.0090285{col 74}{space 3} .3498735
{txt}{space 19} {c |}
{space 6}1.postsub3af9 {c |}{col 21}{res}{space 2} .0198585{col 33}{space 2} .0432192{col 44}{space 1}    0.46{col 53}{space 3}0.646{col 61}{space 4}-.0648583{col 74}{space 3} .1045754
{txt}{space 19} {c |}
postsub3af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2}-.2118426{col 33}{space 2} .0959339{col 44}{space 1}   -2.21{col 53}{space 3}0.027{col 61}{space 4} -.399889{col 74}{space 3}-.0237962
{txt}{space 19} {c |}
{space 15}mage {c |}{col 21}{res}{space 2}-.0029092{col 33}{space 2} .0003155{col 44}{space 1}   -9.22{col 53}{space 3}0.000{col 61}{space 4}-.0035276{col 74}{space 3}-.0022909
{txt}{space 14}mage2 {c |}{col 21}{res}{space 2} .0000213{col 33}{space 2} 3.47e-06{col 44}{space 1}    6.14{col 53}{space 3}0.000{col 61}{space 4} .0000145{col 74}{space 3} .0000281
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} .0422576{col 33}{space 2} .0053269{col 44}{space 1}    7.93{col 53}{space 3}0.000{col 61}{space 4} .0318159{col 74}{space 3} .0526993
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store nonsubu
{txt}
{com}.         
.                 
.                 ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1af9])*(1+exp(_b[1.presub2af9]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9])*exp(_b[1.postsub1af9])*(1+exp(_b[1.postsub2af9]))-2)), post;

     {txt}program: {res}1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1af9])*(1+exp(_b[1.presub2af9]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9])*exp(_b[1.postsub1af9])*(1+exp(_b[1.postsub2af9]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .1091452{col 26}{space 2} .0582888{col 37}{space 1}    1.87{col 46}{space 3}0.061{col 54}{space 4}-.0050987{col 67}{space 3} .2233892
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.0200555{col 26}{space 2} .0280001{col 37}{space 1}   -0.72{col 46}{space 3}0.474{col 54}{space 4}-.0749347{col 67}{space 3} .0348237
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .1600106{col 26}{space 2} .0812114{col 37}{space 1}    1.97{col 46}{space 3}0.049{col 54}{space 4} .0008392{col 67}{space 3}  .319182
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .1791228{col 26}{space 2} .1019512{col 37}{space 1}    1.76{col 46}{space 3}0.079{col 54}{space 4} -.020698{col 67}{space 3} .3789436
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++          
. ***PRICES, SUBSIDIZED
. 
. reghdfe dlogprice i.presub3af9##ib1.treataf i.presub2af9##ib1.treataf i.presub1af9##ib1.treataf i.sub1af9##ib1.treataf i.sub2af9##ib1.treataf i.sub3af9##ib1.treataf i.sub4af9##ib1.treataf i.postsub1af9##ib1.treataf i.postsub2af9##ib1.treataf i.postsub3af9##ib1.treataf  mage mage2 if samples , absorb(id2 cmt) cluster(id)
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 2 HDFE groups{col 51}F({res}  22{txt},{res}  11691{txt}){col 67}= {res}      2.22
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0008
{txt}{col 51}R-squared{col 67}= {res}    0.4100
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0262
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.0695

{txt}{ralign 85:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}          dlogprice{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}1.presub3af9 {c |}{col 21}{res}{space 2}-.0103838{col 33}{space 2} .0046399{col 44}{space 1}   -2.24{col 53}{space 3}0.025{col 61}{space 4}-.0194788{col 74}{space 3}-.0012889
{txt}{space 10}0.treataf {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
{space 1}presub3af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .0108886{col 33}{space 2} .0052132{col 44}{space 1}    2.09{col 53}{space 3}0.037{col 61}{space 4} .0006699{col 74}{space 3} .0211073
{txt}{space 19} {c |}
{space 7}1.presub2af9 {c |}{col 21}{res}{space 2} .0095271{col 33}{space 2} .0076655{col 44}{space 1}    1.24{col 53}{space 3}0.214{col 61}{space 4}-.0054987{col 74}{space 3} .0245528
{txt}{space 19} {c |}
{space 1}presub2af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.0096347{col 33}{space 2} .0085437{col 44}{space 1}   -1.13{col 53}{space 3}0.259{col 61}{space 4}-.0263817{col 74}{space 3} .0071124
{txt}{space 19} {c |}
{space 7}1.presub1af9 {c |}{col 21}{res}{space 2} .0143109{col 33}{space 2} .0043395{col 44}{space 1}    3.30{col 53}{space 3}0.001{col 61}{space 4} .0058047{col 74}{space 3} .0228171
{txt}{space 19} {c |}
{space 1}presub1af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.0085287{col 33}{space 2} .0049408{col 44}{space 1}   -1.73{col 53}{space 3}0.084{col 61}{space 4}-.0182135{col 74}{space 3} .0011561
{txt}{space 19} {c |}
{space 10}1.sub1af9 {c |}{col 21}{res}{space 2} .0005949{col 33}{space 2} .0072748{col 44}{space 1}    0.08{col 53}{space 3}0.935{col 61}{space 4} -.013665{col 74}{space 3} .0148548
{txt}{space 19} {c |}
{space 4}sub1af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.0121872{col 33}{space 2} .0082101{col 44}{space 1}   -1.48{col 53}{space 3}0.138{col 61}{space 4}-.0282804{col 74}{space 3} .0039059
{txt}{space 19} {c |}
{space 10}1.sub2af9 {c |}{col 21}{res}{space 2}-.0003466{col 33}{space 2} .0049136{col 44}{space 1}   -0.07{col 53}{space 3}0.944{col 61}{space 4} -.009978{col 74}{space 3} .0092849
{txt}{space 19} {c |}
{space 4}sub2af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .0006635{col 33}{space 2} .0055795{col 44}{space 1}    0.12{col 53}{space 3}0.905{col 61}{space 4}-.0102733{col 74}{space 3} .0116003
{txt}{space 19} {c |}
{space 10}1.sub3af9 {c |}{col 21}{res}{space 2}-.0014008{col 33}{space 2} .0100029{col 44}{space 1}   -0.14{col 53}{space 3}0.889{col 61}{space 4}-.0210082{col 74}{space 3} .0182066
{txt}{space 19} {c |}
{space 4}sub3af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .0139159{col 33}{space 2} .0113815{col 44}{space 1}    1.22{col 53}{space 3}0.221{col 61}{space 4}-.0083938{col 74}{space 3} .0362255
{txt}{space 19} {c |}
{space 10}1.sub4af9 {c |}{col 21}{res}{space 2} .0005785{col 33}{space 2} .0047663{col 44}{space 1}    0.12{col 53}{space 3}0.903{col 61}{space 4}-.0087643{col 74}{space 3} .0099213
{txt}{space 19} {c |}
{space 4}sub4af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .0013785{col 33}{space 2}  .005855{col 44}{space 1}    0.24{col 53}{space 3}0.814{col 61}{space 4}-.0100983{col 74}{space 3} .0128554
{txt}{space 19} {c |}
{space 6}1.postsub1af9 {c |}{col 21}{res}{space 2}-.0071703{col 33}{space 2} .0069465{col 44}{space 1}   -1.03{col 53}{space 3}0.302{col 61}{space 4}-.0207866{col 74}{space 3} .0064459
{txt}{space 19} {c |}
postsub1af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .0081057{col 33}{space 2} .0079378{col 44}{space 1}    1.02{col 53}{space 3}0.307{col 61}{space 4}-.0074537{col 74}{space 3} .0236652
{txt}{space 19} {c |}
{space 6}1.postsub2af9 {c |}{col 21}{res}{space 2} .0210296{col 33}{space 2} .0078177{col 44}{space 1}    2.69{col 53}{space 3}0.007{col 61}{space 4} .0057056{col 74}{space 3} .0363535
{txt}{space 19} {c |}
postsub2af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2}-.0132096{col 33}{space 2} .0091175{col 44}{space 1}   -1.45{col 53}{space 3}0.147{col 61}{space 4}-.0310814{col 74}{space 3} .0046621
{txt}{space 19} {c |}
{space 6}1.postsub3af9 {c |}{col 21}{res}{space 2} -.003509{col 33}{space 2} .0070362{col 44}{space 1}   -0.50{col 53}{space 3}0.618{col 61}{space 4}-.0173011{col 74}{space 3} .0102832
{txt}{space 19} {c |}
postsub3af9#treataf {c |}
{space 15}1 0  {c |}{col 21}{res}{space 2} .0038898{col 33}{space 2} .0082687{col 44}{space 1}    0.47{col 53}{space 3}0.638{col 61}{space 4}-.0123182{col 74}{space 3} .0200979
{txt}{space 19} {c |}
{space 15}mage {c |}{col 21}{res}{space 2}-7.48e-06{col 33}{space 2} .0000298{col 44}{space 1}   -0.25{col 53}{space 3}0.802{col 61}{space 4}-.0000659{col 74}{space 3} .0000509
{txt}{space 14}mage2 {c |}{col 21}{res}{space 2} 2.55e-07{col 33}{space 2} 3.09e-07{col 44}{space 1}    0.82{col 53}{space 3}0.410{col 61}{space 4}-3.51e-07{col 74}{space 3} 8.60e-07
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0022979{col 33}{space 2} .0005237{col 44}{space 1}   -4.39{col 53}{space 3}0.000{col 61}{space 4}-.0033245{col 74}{space 3}-.0012713
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subp
{txt}
{com}.                 
.                 nlcom   1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)

       {txt}_nl_1: {res}1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0238985{col 26}{space 2} .0096797{col 37}{space 1}    2.47{col 46}{space 3}0.014{col 54}{space 4} .0049265{col 67}{space 3} .0428704
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 
.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***PRICES, NON-SUBSIDIZED
. 
. reghdfe dlogprice i.presub3af9##i.treataf i.presub2af9##i.treataf i.presub1af9##i.treataf i.sub1af9##i.treataf i.sub2af9##i.treataf i.sub3af9##i.treataf i.sub4af9##i.treataf i.postsub1af9##i.treataf i.postsub2af9##i.treataf i.postsub3af9##i.treataf  mage mage2 if samples , absorb(id2 cmt) cluster(id)
{res}{txt}note: {res}1bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}{txt}note: 1.treataf omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 2 HDFE groups{col 51}F({res}  22{txt},{res}  11691{txt}){col 67}= {res}      2.22
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0008
{txt}{col 51}R-squared{col 67}= {res}    0.4100
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0262
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.0695

{txt}{ralign 85:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}          dlogprice{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}1.presub3af9 {c |}{col 21}{res}{space 2} .0005048{col 33}{space 2} .0023767{col 44}{space 1}    0.21{col 53}{space 3}0.832{col 61}{space 4}-.0041539{col 74}{space 3} .0051635
{txt}{space 10}1.treataf {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
{space 1}presub3af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2}-.0108886{col 33}{space 2} .0052132{col 44}{space 1}   -2.09{col 53}{space 3}0.037{col 61}{space 4}-.0211073{col 74}{space 3}-.0006699
{txt}{space 19} {c |}
{space 7}1.presub2af9 {c |}{col 21}{res}{space 2}-.0001076{col 33}{space 2} .0037726{col 44}{space 1}   -0.03{col 53}{space 3}0.977{col 61}{space 4}-.0075026{col 74}{space 3} .0072874
{txt}{space 19} {c |}
{space 1}presub2af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2} .0096347{col 33}{space 2} .0085437{col 44}{space 1}    1.13{col 53}{space 3}0.259{col 61}{space 4}-.0071124{col 74}{space 3} .0263817
{txt}{space 19} {c |}
{space 7}1.presub1af9 {c |}{col 21}{res}{space 2} .0057822{col 33}{space 2} .0023623{col 44}{space 1}    2.45{col 53}{space 3}0.014{col 61}{space 4} .0011516{col 74}{space 3} .0104127
{txt}{space 19} {c |}
{space 1}presub1af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2} .0085287{col 33}{space 2} .0049408{col 44}{space 1}    1.73{col 53}{space 3}0.084{col 61}{space 4}-.0011561{col 74}{space 3} .0182135
{txt}{space 19} {c |}
{space 10}1.sub1af9 {c |}{col 21}{res}{space 2}-.0115923{col 33}{space 2} .0038058{col 44}{space 1}   -3.05{col 53}{space 3}0.002{col 61}{space 4}-.0190523{col 74}{space 3}-.0041323
{txt}{space 19} {c |}
{space 4}sub1af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2} .0121872{col 33}{space 2} .0082101{col 44}{space 1}    1.48{col 53}{space 3}0.138{col 61}{space 4}-.0039059{col 74}{space 3} .0282804
{txt}{space 19} {c |}
{space 10}1.sub2af9 {c |}{col 21}{res}{space 2} .0003169{col 33}{space 2} .0026433{col 44}{space 1}    0.12{col 53}{space 3}0.905{col 61}{space 4}-.0048644{col 74}{space 3} .0054983
{txt}{space 19} {c |}
{space 4}sub2af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2}-.0006635{col 33}{space 2} .0055795{col 44}{space 1}   -0.12{col 53}{space 3}0.905{col 61}{space 4}-.0116003{col 74}{space 3} .0102733
{txt}{space 19} {c |}
{space 10}1.sub3af9 {c |}{col 21}{res}{space 2}  .012515{col 33}{space 2} .0054295{col 44}{space 1}    2.30{col 53}{space 3}0.021{col 61}{space 4} .0018722{col 74}{space 3} .0231578
{txt}{space 19} {c |}
{space 4}sub3af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2}-.0139159{col 33}{space 2} .0113815{col 44}{space 1}   -1.22{col 53}{space 3}0.221{col 61}{space 4}-.0362255{col 74}{space 3} .0083938
{txt}{space 19} {c |}
{space 10}1.sub4af9 {c |}{col 21}{res}{space 2}  .001957{col 33}{space 2} .0034003{col 44}{space 1}    0.58{col 53}{space 3}0.565{col 61}{space 4}-.0047082{col 74}{space 3} .0086222
{txt}{space 19} {c |}
{space 4}sub4af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2}-.0013785{col 33}{space 2}  .005855{col 44}{space 1}   -0.24{col 53}{space 3}0.814{col 61}{space 4}-.0128554{col 74}{space 3} .0100983
{txt}{space 19} {c |}
{space 6}1.postsub1af9 {c |}{col 21}{res}{space 2} .0009354{col 33}{space 2} .0038415{col 44}{space 1}    0.24{col 53}{space 3}0.808{col 61}{space 4}-.0065946{col 74}{space 3} .0084654
{txt}{space 19} {c |}
postsub1af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2}-.0081057{col 33}{space 2} .0079378{col 44}{space 1}   -1.02{col 53}{space 3}0.307{col 61}{space 4}-.0236652{col 74}{space 3} .0074537
{txt}{space 19} {c |}
{space 6}1.postsub2af9 {c |}{col 21}{res}{space 2} .0078199{col 33}{space 2} .0046918{col 44}{space 1}    1.67{col 53}{space 3}0.096{col 61}{space 4}-.0013767{col 74}{space 3} .0170166
{txt}{space 19} {c |}
postsub2af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2} .0132096{col 33}{space 2} .0091175{col 44}{space 1}    1.45{col 53}{space 3}0.147{col 61}{space 4}-.0046621{col 74}{space 3} .0310814
{txt}{space 19} {c |}
{space 6}1.postsub3af9 {c |}{col 21}{res}{space 2} .0003809{col 33}{space 2} .0043431{col 44}{space 1}    0.09{col 53}{space 3}0.930{col 61}{space 4}-.0081324{col 74}{space 3} .0088942
{txt}{space 19} {c |}
postsub3af9#treataf {c |}
{space 15}1 1  {c |}{col 21}{res}{space 2}-.0038898{col 33}{space 2} .0082687{col 44}{space 1}   -0.47{col 53}{space 3}0.638{col 61}{space 4}-.0200979{col 74}{space 3} .0123182
{txt}{space 19} {c |}
{space 15}mage {c |}{col 21}{res}{space 2}-7.48e-06{col 33}{space 2} .0000298{col 44}{space 1}   -0.25{col 53}{space 3}0.802{col 61}{space 4}-.0000659{col 74}{space 3} .0000509
{txt}{space 14}mage2 {c |}{col 21}{res}{space 2} 2.55e-07{col 33}{space 2} 3.09e-07{col 44}{space 1}    0.82{col 53}{space 3}0.410{col 61}{space 4}-3.51e-07{col 74}{space 3} 8.60e-07
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}-.0022979{col 33}{space 2} .0005237{col 44}{space 1}   -4.39{col 53}{space 3}0.000{col 61}{space 4}-.0033245{col 74}{space 3}-.0012713
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store nonsubp       
{txt}
{com}. 
.                 nlcom   1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)

       {txt}_nl_1: {res}1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0010909{col 26}{space 2} .0053942{col 37}{space 1}    0.20{col 46}{space 3}0.840{col 54}{space 4}-.0094816{col 67}{space 3} .0116634
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.                         
.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***RESPONSE BY HEIGHT OF REFRIGERATORS/FREEZERS
. 
. egen cmth=group(country month treataf tall)
{txt}
{com}. 
. ***ABOVE 90 CM, UNITS
. reghdfe dlogunits i.presub3af9##ib1.treataf##ib1.tall i.presub2af9##ib1.treataf##ib1.tall i.presub1af9##ib1.treataf##ib1.tall i.sub1af9##ib1.treataf##ib1.tall i.sub2af9##ib1.treataf##ib1.tall i.sub3af9##ib1.treataf##ib1.tall i.sub4af9##ib1.treataf##ib1.tall i.postsub1af9##ib1.treataf##ib1.tall i.postsub2af9##ib1.treataf##ib1.tall i.postsub3af9##ib1.treataf##ib1.tall  mage mage2 , absorb(id2 cmth) cluster(id)
{res}{txt}(dropped 212755 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treataf#0bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{txt}note: 0.tall omitted because of collinearity
{txt}note: 0.treataf#0.tall omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,381
{txt}Absorbing 2 HDFE groups{col 51}F({res}  42{txt},{res}  11691{txt}){col 67}= {res}      8.57
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4458
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0847
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0008
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6954

{txt}{ralign 90:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 25}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 26}{c |}{col 38}    Robust
{col 1}               dlogunits{col 26}{c |} Coefficient{col 38}  std. err.{col 50}      t{col 58}   P>|t|{col 66}     [95% con{col 79}f. interval]
{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}1.presub3af9 {c |}{col 26}{res}{space 2}-.1902005{col 38}{space 2} .0697883{col 49}{space 1}   -2.73{col 58}{space 3}0.006{col 66}{space 4}-.3269972{col 79}{space 3}-.0534037
{txt}{space 15}0.treataf {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 6}presub3af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .2911392{col 38}{space 2} .0760043{col 49}{space 1}    3.83{col 58}{space 3}0.000{col 66}{space 4} .1421581{col 79}{space 3} .4401202
{txt}{space 24} {c |}
{space 18}0.tall {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 9}presub3af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0941376{col 38}{space 2} .1300618{col 49}{space 1}   -0.72{col 58}{space 3}0.469{col 66}{space 4}-.3490804{col 79}{space 3} .1608051
{txt}{space 24} {c |}
{space 12}treataf#tall {c |}
{space 20}0 0  {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 1}presub3af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}  .030565{col 38}{space 2} .1421848{col 49}{space 1}    0.21{col 58}{space 3}0.830{col 66}{space 4} -.248141{col 79}{space 3}  .309271
{txt}{space 24} {c |}
{space 12}1.presub2af9 {c |}{col 26}{res}{space 2}-.1308518{col 38}{space 2} .0925778{col 49}{space 1}   -1.41{col 58}{space 3}0.158{col 66}{space 4}-.3123197{col 79}{space 3} .0506162
{txt}{space 24} {c |}
{space 6}presub2af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .1899364{col 38}{space 2} .1030416{col 49}{space 1}    1.84{col 58}{space 3}0.065{col 66}{space 4}-.0120423{col 79}{space 3} .3919151
{txt}{space 24} {c |}
{space 9}presub2af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .1280091{col 38}{space 2}  .237175{col 49}{space 1}    0.54{col 58}{space 3}0.589{col 66}{space 4}-.3368935{col 79}{space 3} .5929116
{txt}{space 24} {c |}
{space 1}presub2af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}-.2034622{col 38}{space 2} .2533575{col 49}{space 1}   -0.80{col 58}{space 3}0.422{col 66}{space 4}-.7000852{col 79}{space 3} .2931608
{txt}{space 24} {c |}
{space 12}1.presub1af9 {c |}{col 26}{res}{space 2}-.1295311{col 38}{space 2} .0477456{col 49}{space 1}   -2.71{col 58}{space 3}0.007{col 66}{space 4}-.2231205{col 79}{space 3}-.0359417
{txt}{space 24} {c |}
{space 6}presub1af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0872519{col 38}{space 2} .0549652{col 49}{space 1}    1.59{col 58}{space 3}0.112{col 66}{space 4} -.020489{col 79}{space 3} .1949928
{txt}{space 24} {c |}
{space 9}presub1af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0522457{col 38}{space 2}  .103097{col 49}{space 1}    0.51{col 58}{space 3}0.612{col 66}{space 4}-.1498416{col 79}{space 3} .2543331
{txt}{space 24} {c |}
{space 1}presub1af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}-.0411271{col 38}{space 2}  .118133{col 49}{space 1}   -0.35{col 58}{space 3}0.728{col 66}{space 4}-.2726874{col 79}{space 3} .1904332
{txt}{space 24} {c |}
{space 15}1.sub1af9 {c |}{col 26}{res}{space 2} .8029666{col 38}{space 2} .1021938{col 49}{space 1}    7.86{col 58}{space 3}0.000{col 66}{space 4} .6026498{col 79}{space 3} 1.003283
{txt}{space 24} {c |}
{space 9}sub1af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.7479336{col 38}{space 2}  .112948{col 49}{space 1}   -6.62{col 58}{space 3}0.000{col 66}{space 4}-.9693305{col 79}{space 3}-.5265367
{txt}{space 24} {c |}
{space 12}sub1af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .1118726{col 38}{space 2} .1856204{col 49}{space 1}    0.60{col 58}{space 3}0.547{col 66}{space 4}-.2519743{col 79}{space 3} .4757195
{txt}{space 24} {c |}
{space 4}sub1af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}-.0083698{col 38}{space 2} .2058451{col 49}{space 1}   -0.04{col 58}{space 3}0.968{col 66}{space 4}-.4118606{col 79}{space 3}  .395121
{txt}{space 24} {c |}
{space 15}1.sub2af9 {c |}{col 26}{res}{space 2}-.1814863{col 38}{space 2} .0633645{col 49}{space 1}   -2.86{col 58}{space 3}0.004{col 66}{space 4}-.3056913{col 79}{space 3}-.0572813
{txt}{space 24} {c |}
{space 9}sub2af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .1601319{col 38}{space 2} .0717303{col 49}{space 1}    2.23{col 58}{space 3}0.026{col 66}{space 4} .0195286{col 79}{space 3} .3007352
{txt}{space 24} {c |}
{space 12}sub2af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0323081{col 38}{space 2} .1443968{col 49}{space 1}   -0.22{col 58}{space 3}0.823{col 66}{space 4}-.3153498{col 79}{space 3} .2507337
{txt}{space 24} {c |}
{space 4}sub2af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}-.0171527{col 38}{space 2} .1591816{col 49}{space 1}   -0.11{col 58}{space 3}0.914{col 66}{space 4}-.3291752{col 79}{space 3} .2948699
{txt}{space 24} {c |}
{space 15}1.sub3af9 {c |}{col 26}{res}{space 2} .2767176{col 38}{space 2} .0983913{col 49}{space 1}    2.81{col 58}{space 3}0.005{col 66}{space 4} .0838543{col 79}{space 3}  .469581
{txt}{space 24} {c |}
{space 9}sub3af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.1328828{col 38}{space 2} .1169188{col 49}{space 1}   -1.14{col 58}{space 3}0.256{col 66}{space 4}-.3620631{col 79}{space 3} .0962975
{txt}{space 24} {c |}
{space 12}sub3af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .3589346{col 38}{space 2} .2299454{col 49}{space 1}    1.56{col 58}{space 3}0.119{col 66}{space 4}-.0917967{col 79}{space 3}  .809666
{txt}{space 24} {c |}
{space 4}sub3af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2} -.470071{col 38}{space 2} .2577552{col 49}{space 1}   -1.82{col 58}{space 3}0.068{col 66}{space 4}-.9753143{col 79}{space 3} .0351723
{txt}{space 24} {c |}
{space 15}1.sub4af9 {c |}{col 26}{res}{space 2} .0164332{col 38}{space 2} .0612707{col 49}{space 1}    0.27{col 58}{space 3}0.789{col 66}{space 4}-.1036676{col 79}{space 3} .1365339
{txt}{space 24} {c |}
{space 9}sub4af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0721978{col 38}{space 2} .0712427{col 49}{space 1}   -1.01{col 58}{space 3}0.311{col 66}{space 4}-.2118454{col 79}{space 3} .0674498
{txt}{space 24} {c |}
{space 12}sub4af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.1875849{col 38}{space 2}   .15656{col 49}{space 1}   -1.20{col 58}{space 3}0.231{col 66}{space 4}-.4944687{col 79}{space 3}  .119299
{txt}{space 24} {c |}
{space 4}sub4af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2} .2507602{col 38}{space 2} .1730407{col 49}{space 1}    1.45{col 58}{space 3}0.147{col 66}{space 4}-.0884284{col 79}{space 3} .5899489
{txt}{space 24} {c |}
{space 11}1.postsub1af9 {c |}{col 26}{res}{space 2}-.3273183{col 38}{space 2} .0844178{col 49}{space 1}   -3.88{col 58}{space 3}0.000{col 66}{space 4}-.4927913{col 79}{space 3}-.1618454
{txt}{space 24} {c |}
{space 5}postsub1af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .3554788{col 38}{space 2} .0987959{col 49}{space 1}    3.60{col 58}{space 3}0.000{col 66}{space 4} .1618224{col 79}{space 3} .5491352
{txt}{space 24} {c |}
{space 8}postsub1af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .3375084{col 38}{space 2}  .176059{col 49}{space 1}    1.92{col 58}{space 3}0.055{col 66}{space 4}-.0075967{col 79}{space 3} .6826135
{txt}{space 24} {c |}
postsub1af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}-.3552017{col 38}{space 2}  .204046{col 49}{space 1}   -1.74{col 58}{space 3}0.082{col 66}{space 4} -.755166{col 79}{space 3} .0447626
{txt}{space 24} {c |}
{space 11}1.postsub2af9 {c |}{col 26}{res}{space 2} .2282025{col 38}{space 2} .0846472{col 49}{space 1}    2.70{col 58}{space 3}0.007{col 66}{space 4} .0622799{col 79}{space 3}  .394125
{txt}{space 24} {c |}
{space 5}postsub2af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.2718981{col 38}{space 2} .1033199{col 49}{space 1}   -2.63{col 58}{space 3}0.009{col 66}{space 4}-.4744225{col 79}{space 3}-.0693738
{txt}{space 24} {c |}
{space 8}postsub2af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.2958963{col 38}{space 2} .1840307{col 49}{space 1}   -1.61{col 58}{space 3}0.108{col 66}{space 4}-.6566272{col 79}{space 3} .0648346
{txt}{space 24} {c |}
postsub2af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2} .4786774{col 38}{space 2} .2173542{col 49}{space 1}    2.20{col 58}{space 3}0.028{col 66}{space 4} .0526269{col 79}{space 3} .9047279
{txt}{space 24} {c |}
{space 11}1.postsub3af9 {c |}{col 26}{res}{space 2}  -.16992{col 38}{space 2} .0975762{col 49}{space 1}   -1.74{col 58}{space 3}0.082{col 66}{space 4}-.3611857{col 79}{space 3} .0213456
{txt}{space 24} {c |}
{space 5}postsub3af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .2084641{col 38}{space 2} .1106549{col 49}{space 1}    1.88{col 58}{space 3}0.060{col 66}{space 4}-.0084379{col 79}{space 3} .4253661
{txt}{space 24} {c |}
{space 8}postsub3af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.1408684{col 38}{space 2} .1938817{col 49}{space 1}   -0.73{col 58}{space 3}0.468{col 66}{space 4}-.5209088{col 79}{space 3}  .239172
{txt}{space 24} {c |}
postsub3af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2} .0734364{col 38}{space 2} .2145503{col 49}{space 1}    0.34{col 58}{space 3}0.732{col 66}{space 4} -.347118{col 79}{space 3} .4939909
{txt}{space 24} {c |}
{space 20}mage {c |}{col 26}{res}{space 2}-.0029192{col 38}{space 2} .0003159{col 49}{space 1}   -9.24{col 58}{space 3}0.000{col 66}{space 4}-.0035383{col 79}{space 3}   -.0023
{txt}{space 19}mage2 {c |}{col 26}{res}{space 2} .0000214{col 38}{space 2} 3.48e-06{col 49}{space 1}    6.14{col 58}{space 3}0.000{col 66}{space 4} .0000145{col 79}{space 3} .0000282
{txt}{space 19}_cons {c |}{col 26}{res}{space 2} .0424696{col 38}{space 2} .0053284{col 49}{space 1}    7.97{col 58}{space 3}0.000{col 66}{space 4} .0320251{col 79}{space 3} .0529141
{txt}{hline 25}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        cmth{col 14}{c |}{space 1}      380{col 27}{space 1}        0{col 39}{result}{space 1}      380{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subtallu
{txt}
{com}. 
.                 gen samplet=e(sample)
{txt}
{com}.                 ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1af9])*(1+exp(_b[1.presub2af9]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9])*exp(_b[1.postsub1af9])*(1+exp(_b[1.postsub2af9]))-2)), post;

     {txt}program: {res}1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1af9])*(1+exp(_b[1.presub2af9]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9])*exp(_b[1.postsub1af9])*(1+exp(_b[1.postsub2af9]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .7428468{col 26}{space 2} .2171971{col 37}{space 1}    3.42{col 46}{space 3}0.001{col 54}{space 4} .3171483{col 67}{space 3} 1.168545
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.1753682{col 26}{space 2} .0476705{col 37}{space 1}   -3.68{col 46}{space 3}0.000{col 54}{space 4}-.2688006{col 67}{space 3}-.0819357
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .5644379{col 26}{space 2} .2420713{col 37}{space 1}    2.33{col 46}{space 3}0.020{col 54}{space 4} .0899869{col 67}{space 3} 1.038889
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .9373817{col 26}{space 2}  .338371{col 37}{space 1}    2.77{col 46}{space 3}0.006{col 54}{space 4} .2741868{col 67}{space 3} 1.600577
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.         
. 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***SMALLER OR EQUAL 90CM, UNITS
. 
. reghdfe dlogunits i.presub3af9##ib1.treataf##i.tall i.presub2af9##ib1.treataf##i.tall i.presub1af9##ib1.treataf##i.tall i.sub1af9##ib1.treataf##i.tall i.sub2af9##ib1.treataf##i.tall i.sub3af9##ib1.treataf##i.tall i.sub4af9##ib1.treataf##i.tall i.postsub1af9##ib1.treataf##i.tall i.postsub2af9##ib1.treataf##i.tall i.postsub3af9##ib1.treataf##i.tall  mage mage2 , absorb(id2 cmth) cluster(id)
{res}{txt}(dropped 212755 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treataf#1bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{txt}note: 1.tall omitted because of collinearity
{txt}note: 0.treataf#1.tall omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,381
{txt}Absorbing 2 HDFE groups{col 51}F({res}  42{txt},{res}  11691{txt}){col 67}= {res}      8.57
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4458
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0847
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0008
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6954

{txt}{ralign 90:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 25}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 26}{c |}{col 38}    Robust
{col 1}               dlogunits{col 26}{c |} Coefficient{col 38}  std. err.{col 50}      t{col 58}   P>|t|{col 66}     [95% con{col 79}f. interval]
{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}1.presub3af9 {c |}{col 26}{res}{space 2}-.2843381{col 38}{space 2} .1097525{col 49}{space 1}   -2.59{col 58}{space 3}0.010{col 66}{space 4}-.4994713{col 79}{space 3}-.0692049
{txt}{space 15}0.treataf {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 6}presub3af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .3217041{col 38}{space 2}  .120166{col 49}{space 1}    2.68{col 58}{space 3}0.007{col 66}{space 4} .0861586{col 79}{space 3} .5572496
{txt}{space 24} {c |}
{space 18}1.tall {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 9}presub3af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2} .0941376{col 38}{space 2} .1300618{col 49}{space 1}    0.72{col 58}{space 3}0.469{col 66}{space 4}-.1608051{col 79}{space 3} .3490804
{txt}{space 24} {c |}
{space 12}treataf#tall {c |}
{space 20}0 1  {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 1}presub3af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} -.030565{col 38}{space 2} .1421848{col 49}{space 1}   -0.21{col 58}{space 3}0.830{col 66}{space 4} -.309271{col 79}{space 3}  .248141
{txt}{space 24} {c |}
{space 12}1.presub2af9 {c |}{col 26}{res}{space 2}-.0028427{col 38}{space 2} .2183602{col 49}{space 1}   -0.01{col 58}{space 3}0.990{col 66}{space 4}-.4308652{col 79}{space 3} .4251798
{txt}{space 24} {c |}
{space 6}presub2af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0135258{col 38}{space 2} .2314569{col 49}{space 1}   -0.06{col 58}{space 3}0.953{col 66}{space 4}-.4672199{col 79}{space 3} .4401683
{txt}{space 24} {c |}
{space 9}presub2af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2}-.1280091{col 38}{space 2}  .237175{col 49}{space 1}   -0.54{col 58}{space 3}0.589{col 66}{space 4}-.5929116{col 79}{space 3} .3368935
{txt}{space 24} {c |}
{space 1}presub2af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} .2034622{col 38}{space 2} .2533575{col 49}{space 1}    0.80{col 58}{space 3}0.422{col 66}{space 4}-.2931608{col 79}{space 3} .7000852
{txt}{space 24} {c |}
{space 12}1.presub1af9 {c |}{col 26}{res}{space 2}-.0772854{col 38}{space 2} .0913755{col 49}{space 1}   -0.85{col 58}{space 3}0.398{col 66}{space 4}-.2563967{col 79}{space 3} .1018259
{txt}{space 24} {c |}
{space 6}presub1af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0461248{col 38}{space 2} .1045669{col 49}{space 1}    0.44{col 58}{space 3}0.659{col 66}{space 4}-.1588438{col 79}{space 3} .2510934
{txt}{space 24} {c |}
{space 9}presub1af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2}-.0522457{col 38}{space 2}  .103097{col 49}{space 1}   -0.51{col 58}{space 3}0.612{col 66}{space 4}-.2543331{col 79}{space 3} .1498416
{txt}{space 24} {c |}
{space 1}presub1af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} .0411271{col 38}{space 2}  .118133{col 49}{space 1}    0.35{col 58}{space 3}0.728{col 66}{space 4}-.1904332{col 79}{space 3} .2726874
{txt}{space 24} {c |}
{space 15}1.sub1af9 {c |}{col 26}{res}{space 2} .9148392{col 38}{space 2} .1549554{col 49}{space 1}    5.90{col 58}{space 3}0.000{col 66}{space 4} .6111008{col 79}{space 3} 1.218578
{txt}{space 24} {c |}
{space 9}sub1af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.7563034{col 38}{space 2} .1720898{col 49}{space 1}   -4.39{col 58}{space 3}0.000{col 66}{space 4}-1.093628{col 79}{space 3}-.4189787
{txt}{space 24} {c |}
{space 12}sub1af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2}-.1118726{col 38}{space 2} .1856204{col 49}{space 1}   -0.60{col 58}{space 3}0.547{col 66}{space 4}-.4757195{col 79}{space 3} .2519743
{txt}{space 24} {c |}
{space 4}sub1af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} .0083698{col 38}{space 2} .2058451{col 49}{space 1}    0.04{col 58}{space 3}0.968{col 66}{space 4} -.395121{col 79}{space 3} .4118606
{txt}{space 24} {c |}
{space 15}1.sub2af9 {c |}{col 26}{res}{space 2}-.2137944{col 38}{space 2} .1297514{col 49}{space 1}   -1.65{col 58}{space 3}0.099{col 66}{space 4}-.4681287{col 79}{space 3} .0405399
{txt}{space 24} {c |}
{space 9}sub2af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .1429792{col 38}{space 2} .1421034{col 49}{space 1}    1.01{col 58}{space 3}0.314{col 66}{space 4}-.1355671{col 79}{space 3} .4215255
{txt}{space 24} {c |}
{space 12}sub2af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2} .0323081{col 38}{space 2} .1443968{col 49}{space 1}    0.22{col 58}{space 3}0.823{col 66}{space 4}-.2507337{col 79}{space 3} .3153498
{txt}{space 24} {c |}
{space 4}sub2af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} .0171527{col 38}{space 2} .1591816{col 49}{space 1}    0.11{col 58}{space 3}0.914{col 66}{space 4}-.2948699{col 79}{space 3} .3291752
{txt}{space 24} {c |}
{space 15}1.sub3af9 {c |}{col 26}{res}{space 2} .6356523{col 38}{space 2} .2078313{col 49}{space 1}    3.06{col 58}{space 3}0.002{col 66}{space 4} .2282683{col 79}{space 3} 1.043036
{txt}{space 24} {c |}
{space 9}sub3af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.6029538{col 38}{space 2} .2297118{col 49}{space 1}   -2.62{col 58}{space 3}0.009{col 66}{space 4}-1.053227{col 79}{space 3}-.1526803
{txt}{space 24} {c |}
{space 12}sub3af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2}-.3589346{col 38}{space 2} .2299454{col 49}{space 1}   -1.56{col 58}{space 3}0.119{col 66}{space 4} -.809666{col 79}{space 3} .0917967
{txt}{space 24} {c |}
{space 4}sub3af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2}  .470071{col 38}{space 2} .2577552{col 49}{space 1}    1.82{col 58}{space 3}0.068{col 66}{space 4}-.0351723{col 79}{space 3} .9753143
{txt}{space 24} {c |}
{space 15}1.sub4af9 {c |}{col 26}{res}{space 2}-.1711517{col 38}{space 2} .1440735{col 49}{space 1}   -1.19{col 58}{space 3}0.235{col 66}{space 4}-.4535597{col 79}{space 3} .1112564
{txt}{space 24} {c |}
{space 9}sub4af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .1785624{col 38}{space 2} .1576955{col 49}{space 1}    1.13{col 58}{space 3}0.258{col 66}{space 4}-.1305471{col 79}{space 3}  .487672
{txt}{space 24} {c |}
{space 12}sub4af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2} .1875849{col 38}{space 2}   .15656{col 49}{space 1}    1.20{col 58}{space 3}0.231{col 66}{space 4} -.119299{col 79}{space 3} .4944687
{txt}{space 24} {c |}
{space 4}sub4af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2}-.2507602{col 38}{space 2} .1730407{col 49}{space 1}   -1.45{col 58}{space 3}0.147{col 66}{space 4}-.5899489{col 79}{space 3} .0884284
{txt}{space 24} {c |}
{space 11}1.postsub1af9 {c |}{col 26}{res}{space 2} .0101901{col 38}{space 2} .1545007{col 49}{space 1}    0.07{col 58}{space 3}0.947{col 66}{space 4}-.2926571{col 79}{space 3} .3130372
{txt}{space 24} {c |}
{space 5}postsub1af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}  .000277{col 38}{space 2} .1785331{col 49}{space 1}    0.00{col 58}{space 3}0.999{col 66}{space 4}-.3496776{col 79}{space 3} .3502316
{txt}{space 24} {c |}
{space 8}postsub1af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2}-.3375084{col 38}{space 2}  .176059{col 49}{space 1}   -1.92{col 58}{space 3}0.055{col 66}{space 4}-.6826135{col 79}{space 3} .0075967
{txt}{space 24} {c |}
postsub1af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} .3552017{col 38}{space 2}  .204046{col 49}{space 1}    1.74{col 58}{space 3}0.082{col 66}{space 4}-.0447626{col 79}{space 3}  .755166
{txt}{space 24} {c |}
{space 11}1.postsub2af9 {c |}{col 26}{res}{space 2}-.0676938{col 38}{space 2} .1634086{col 49}{space 1}   -0.41{col 58}{space 3}0.679{col 66}{space 4} -.388002{col 79}{space 3} .2526143
{txt}{space 24} {c |}
{space 5}postsub2af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .2067793{col 38}{space 2} .1912266{col 49}{space 1}    1.08{col 58}{space 3}0.280{col 66}{space 4}-.1680568{col 79}{space 3} .5816154
{txt}{space 24} {c |}
{space 8}postsub2af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2} .2958963{col 38}{space 2} .1840307{col 49}{space 1}    1.61{col 58}{space 3}0.108{col 66}{space 4}-.0648346{col 79}{space 3} .6566272
{txt}{space 24} {c |}
postsub2af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2}-.4786774{col 38}{space 2} .2173542{col 49}{space 1}   -2.20{col 58}{space 3}0.028{col 66}{space 4}-.9047279{col 79}{space 3}-.0526269
{txt}{space 24} {c |}
{space 11}1.postsub3af9 {c |}{col 26}{res}{space 2}-.3107885{col 38}{space 2}  .167538{col 49}{space 1}   -1.86{col 58}{space 3}0.064{col 66}{space 4} -.639191{col 79}{space 3}  .017614
{txt}{space 24} {c |}
{space 5}postsub3af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .2819005{col 38}{space 2} .1838142{col 49}{space 1}    1.53{col 58}{space 3}0.125{col 66}{space 4} -.078406{col 79}{space 3} .6422071
{txt}{space 24} {c |}
{space 8}postsub3af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2} .1408684{col 38}{space 2} .1938817{col 49}{space 1}    0.73{col 58}{space 3}0.468{col 66}{space 4} -.239172{col 79}{space 3} .5209088
{txt}{space 24} {c |}
postsub3af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2}-.0734364{col 38}{space 2} .2145503{col 49}{space 1}   -0.34{col 58}{space 3}0.732{col 66}{space 4}-.4939909{col 79}{space 3}  .347118
{txt}{space 24} {c |}
{space 20}mage {c |}{col 26}{res}{space 2}-.0029192{col 38}{space 2} .0003159{col 49}{space 1}   -9.24{col 58}{space 3}0.000{col 66}{space 4}-.0035383{col 79}{space 3}   -.0023
{txt}{space 19}mage2 {c |}{col 26}{res}{space 2} .0000214{col 38}{space 2} 3.48e-06{col 49}{space 1}    6.14{col 58}{space 3}0.000{col 66}{space 4} .0000145{col 79}{space 3} .0000282
{txt}{space 19}_cons {c |}{col 26}{res}{space 2} .0424696{col 38}{space 2} .0053284{col 49}{space 1}    7.97{col 58}{space 3}0.000{col 66}{space 4} .0320251{col 79}{space 3} .0529141
{txt}{hline 25}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        cmth{col 14}{c |}{space 1}      380{col 27}{space 1}        0{col 39}{result}{space 1}      380{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subshortu
{txt}
{com}. 
.                 ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1af9])*(1+exp(_b[1.presub2af9]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9])*exp(_b[1.postsub1af9])*(1+exp(_b[1.postsub2af9]))-2)), post;

     {txt}program: {res}1/4*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*(1+exp(_b[1.sub2af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])+exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9]))-4)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1af9])*(1+exp(_b[1.presub2af9]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2af9])*exp(_b[1.presub1af9])*exp(_b[1.sub1af9])*exp(_b[1.sub2af9])*exp(_b[1.sub3af9])*exp(_b[1.sub4af9])*exp(_b[1.postsub1af9])*(1+exp(_b[1.postsub2af9]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} 1.659701{col 26}{space 2} .6159441{col 37}{space 1}    2.69{col 46}{space 3}0.007{col 54}{space 4} .4524723{col 67}{space 3} 2.866929
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.0756881{col 26}{space 2}  .097545{col 37}{space 1}   -0.78{col 46}{space 3}0.438{col 54}{space 4}-.2668729{col 67}{space 3} .1154966
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} 1.893113{col 26}{space 2} .8658812{col 37}{space 1}    2.19{col 46}{space 3}0.029{col 54}{space 4} .1960171{col 67}{space 3} 3.590209
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/4)*_b[preshift]+ (2/4)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 2.568413{col 26}{space 2} 1.028185{col 37}{space 1}    2.50{col 46}{space 3}0.012{col 54}{space 4} .5532078{col 67}{space 3} 4.583619
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***ABOVE 90 CM, PRICES
. 
. reghdfe dlogprice i.presub3af9##ib1.treataf##ib1.tall i.presub2af9##ib1.treataf##ib1.tall i.presub1af9##ib1.treataf##ib1.tall i.sub1af9##ib1.treataf##ib1.tall i.sub2af9##ib1.treataf##ib1.tall i.sub3af9##ib1.treataf##ib1.tall i.sub4af9##ib1.treataf##ib1.tall i.postsub1af9##ib1.treataf##ib1.tall i.postsub2af9##ib1.treataf##ib1.tall i.postsub3af9##ib1.treataf##ib1.tall  mage mage2  if samplet , absorb(id2 cmth) cluster(id)
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treataf#0bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{txt}note: 0.tall omitted because of collinearity
{txt}note: 0.treataf#0.tall omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,381
{txt}Absorbing 2 HDFE groups{col 51}F({res}  42{txt},{res}  11691{txt}){col 67}= {res}      2.44
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4105
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0262
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.0695

{txt}{ralign 90:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 25}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 26}{c |}{col 38}    Robust
{col 1}               dlogprice{col 26}{c |} Coefficient{col 38}  std. err.{col 50}      t{col 58}   P>|t|{col 66}     [95% con{col 79}f. interval]
{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}1.presub3af9 {c |}{col 26}{res}{space 2}-.0146764{col 38}{space 2} .0050806{col 49}{space 1}   -2.89{col 58}{space 3}0.004{col 66}{space 4}-.0246351{col 79}{space 3}-.0047176
{txt}{space 15}0.treataf {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 6}presub3af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0149524{col 38}{space 2} .0058191{col 49}{space 1}    2.57{col 58}{space 3}0.010{col 66}{space 4}  .003546{col 79}{space 3} .0263587
{txt}{space 24} {c |}
{space 18}0.tall {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 9}presub3af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0202682{col 38}{space 2} .0119412{col 49}{space 1}    1.70{col 58}{space 3}0.090{col 66}{space 4}-.0031386{col 79}{space 3}  .043675
{txt}{space 24} {c |}
{space 12}treataf#tall {c |}
{space 20}0 0  {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 1}presub3af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}-.0195762{col 38}{space 2} .0129832{col 49}{space 1}   -1.51{col 58}{space 3}0.132{col 66}{space 4}-.0450255{col 79}{space 3}  .005873
{txt}{space 24} {c |}
{space 12}1.presub2af9 {c |}{col 26}{res}{space 2} .0078802{col 38}{space 2} .0089565{col 49}{space 1}    0.88{col 58}{space 3}0.379{col 66}{space 4}-.0096761{col 79}{space 3} .0254365
{txt}{space 24} {c |}
{space 6}presub2af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0063569{col 38}{space 2} .0098407{col 49}{space 1}   -0.65{col 58}{space 3}0.518{col 66}{space 4}-.0256463{col 79}{space 3} .0129325
{txt}{space 24} {c |}
{space 9}presub2af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0094044{col 38}{space 2} .0163401{col 49}{space 1}    0.58{col 58}{space 3}0.565{col 66}{space 4}-.0226249{col 79}{space 3} .0414338
{txt}{space 24} {c |}
{space 1}presub2af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}-.0157948{col 38}{space 2} .0189962{col 49}{space 1}   -0.83{col 58}{space 3}0.406{col 66}{space 4}-.0530304{col 79}{space 3} .0214409
{txt}{space 24} {c |}
{space 12}1.presub1af9 {c |}{col 26}{res}{space 2} .0153861{col 38}{space 2} .0049629{col 49}{space 1}    3.10{col 58}{space 3}0.002{col 66}{space 4}  .005658{col 79}{space 3} .0251143
{txt}{space 24} {c |}
{space 6}presub1af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0109525{col 38}{space 2} .0056923{col 49}{space 1}   -1.92{col 58}{space 3}0.054{col 66}{space 4}-.0221103{col 79}{space 3} .0002053
{txt}{space 24} {c |}
{space 9}presub1af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0059383{col 38}{space 2} .0099475{col 49}{space 1}   -0.60{col 58}{space 3}0.551{col 66}{space 4}-.0254371{col 79}{space 3} .0135604
{txt}{space 24} {c |}
{space 1}presub1af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}  .011728{col 38}{space 2} .0112036{col 49}{space 1}    1.05{col 58}{space 3}0.295{col 66}{space 4}-.0102328{col 79}{space 3} .0336889
{txt}{space 24} {c |}
{space 15}1.sub1af9 {c |}{col 26}{res}{space 2} .0021631{col 38}{space 2} .0082259{col 49}{space 1}    0.26{col 58}{space 3}0.793{col 66}{space 4} -.013961{col 79}{space 3} .0182872
{txt}{space 24} {c |}
{space 9}sub1af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0180993{col 38}{space 2}  .009233{col 49}{space 1}   -1.96{col 58}{space 3}0.050{col 66}{space 4}-.0361975{col 79}{space 3}-1.14e-06
{txt}{space 24} {c |}
{space 12}sub1af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0079218{col 38}{space 2} .0174536{col 49}{space 1}   -0.45{col 58}{space 3}0.650{col 66}{space 4}-.0421337{col 79}{space 3} .0262902
{txt}{space 24} {c |}
{space 4}sub1af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2} .0250521{col 38}{space 2}  .019862{col 49}{space 1}    1.26{col 58}{space 3}0.207{col 66}{space 4}-.0138807{col 79}{space 3} .0639849
{txt}{space 24} {c |}
{space 15}1.sub2af9 {c |}{col 26}{res}{space 2} .0010363{col 38}{space 2} .0053772{col 49}{space 1}    0.19{col 58}{space 3}0.847{col 66}{space 4}-.0095038{col 79}{space 3} .0115764
{txt}{space 24} {c |}
{space 9}sub2af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0029485{col 38}{space 2} .0061447{col 49}{space 1}    0.48{col 58}{space 3}0.631{col 66}{space 4}-.0090961{col 79}{space 3} .0149931
{txt}{space 24} {c |}
{space 12}sub2af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0078117{col 38}{space 2} .0132241{col 49}{space 1}   -0.59{col 58}{space 3}0.555{col 66}{space 4} -.033733{col 79}{space 3} .0181097
{txt}{space 24} {c |}
{space 4}sub2af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}-.0068602{col 38}{space 2} .0146717{col 49}{space 1}   -0.47{col 58}{space 3}0.640{col 66}{space 4}-.0356192{col 79}{space 3} .0218989
{txt}{space 24} {c |}
{space 15}1.sub3af9 {c |}{col 26}{res}{space 2}-.0044321{col 38}{space 2} .0109069{col 49}{space 1}   -0.41{col 58}{space 3}0.684{col 66}{space 4}-.0258115{col 79}{space 3} .0169472
{txt}{space 24} {c |}
{space 9}sub3af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0228606{col 38}{space 2} .0126438{col 49}{space 1}    1.81{col 58}{space 3}0.071{col 66}{space 4}-.0019233{col 79}{space 3} .0476445
{txt}{space 24} {c |}
{space 12}sub3af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0179913{col 38}{space 2} .0272088{col 49}{space 1}    0.66{col 58}{space 3}0.508{col 66}{space 4}-.0353424{col 79}{space 3}  .071325
{txt}{space 24} {c |}
{space 4}sub3af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}-.0401113{col 38}{space 2} .0297693{col 49}{space 1}   -1.35{col 58}{space 3}0.178{col 66}{space 4}-.0984641{col 79}{space 3} .0182414
{txt}{space 24} {c |}
{space 15}1.sub4af9 {c |}{col 26}{res}{space 2}-.0082445{col 38}{space 2} .0052418{col 49}{space 1}   -1.57{col 58}{space 3}0.116{col 66}{space 4}-.0185193{col 79}{space 3} .0020303
{txt}{space 24} {c |}
{space 9}sub4af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0072365{col 38}{space 2} .0065686{col 49}{space 1}    1.10{col 58}{space 3}0.271{col 66}{space 4}-.0056391{col 79}{space 3} .0201122
{txt}{space 24} {c |}
{space 12}sub4af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0479398{col 38}{space 2} .0115407{col 49}{space 1}    4.15{col 58}{space 3}0.000{col 66}{space 4}  .025318{col 79}{space 3} .0705615
{txt}{space 24} {c |}
{space 4}sub4af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}-.0368707{col 38}{space 2} .0138903{col 49}{space 1}   -2.65{col 58}{space 3}0.008{col 66}{space 4} -.064098{col 79}{space 3}-.0096434
{txt}{space 24} {c |}
{space 11}1.postsub1af9 {c |}{col 26}{res}{space 2}-.0096791{col 38}{space 2} .0079418{col 49}{space 1}   -1.22{col 58}{space 3}0.223{col 66}{space 4}-.0252464{col 79}{space 3} .0058881
{txt}{space 24} {c |}
{space 5}postsub1af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0115991{col 38}{space 2}  .009148{col 49}{space 1}    1.27{col 58}{space 3}0.205{col 66}{space 4}-.0063325{col 79}{space 3} .0295307
{txt}{space 24} {c |}
{space 8}postsub1af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0165556{col 38}{space 2}  .014499{col 49}{space 1}    1.14{col 58}{space 3}0.254{col 66}{space 4}-.0118647{col 79}{space 3}  .044976
{txt}{space 24} {c |}
postsub1af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2} -.020113{col 38}{space 2}  .016811{col 49}{space 1}   -1.20{col 58}{space 3}0.232{col 66}{space 4}-.0530654{col 79}{space 3} .0128394
{txt}{space 24} {c |}
{space 11}1.postsub2af9 {c |}{col 26}{res}{space 2} .0225048{col 38}{space 2} .0086976{col 49}{space 1}    2.59{col 58}{space 3}0.010{col 66}{space 4}  .005456{col 79}{space 3} .0395537
{txt}{space 24} {c |}
{space 5}postsub2af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0122938{col 38}{space 2} .0102603{col 49}{space 1}   -1.20{col 58}{space 3}0.231{col 66}{space 4}-.0324057{col 79}{space 3} .0078181
{txt}{space 24} {c |}
{space 8}postsub2af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0084345{col 38}{space 2} .0196656{col 49}{space 1}   -0.43{col 58}{space 3}0.668{col 66}{space 4}-.0469823{col 79}{space 3} .0301133
{txt}{space 24} {c |}
postsub2af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2}-.0000282{col 38}{space 2} .0223894{col 49}{space 1}   -0.00{col 58}{space 3}0.999{col 66}{space 4}-.0439152{col 79}{space 3} .0438589
{txt}{space 24} {c |}
{space 11}1.postsub3af9 {c |}{col 26}{res}{space 2} .0033431{col 38}{space 2} .0080905{col 49}{space 1}    0.41{col 58}{space 3}0.679{col 66}{space 4}-.0125157{col 79}{space 3} .0192019
{txt}{space 24} {c |}
{space 5}postsub3af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0027779{col 38}{space 2} .0095669{col 49}{space 1}   -0.29{col 58}{space 3}0.772{col 66}{space 4}-.0215307{col 79}{space 3}  .015975
{txt}{space 24} {c |}
{space 8}postsub3af9#tall {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0373598{col 38}{space 2} .0141745{col 49}{space 1}   -2.64{col 58}{space 3}0.008{col 66}{space 4}-.0651442{col 79}{space 3}-.0095755
{txt}{space 24} {c |}
postsub3af9#treataf#tall {c |}
{space 18}1 0 0  {c |}{col 26}{res}{space 2} .0366842{col 38}{space 2} .0171829{col 49}{space 1}    2.13{col 58}{space 3}0.033{col 66}{space 4} .0030027{col 79}{space 3} .0703656
{txt}{space 24} {c |}
{space 20}mage {c |}{col 26}{res}{space 2}-.0000101{col 38}{space 2} .0000299{col 49}{space 1}   -0.34{col 58}{space 3}0.735{col 66}{space 4}-.0000688{col 79}{space 3} .0000486
{txt}{space 19}mage2 {c |}{col 26}{res}{space 2} 2.80e-07{col 38}{space 2} 3.12e-07{col 49}{space 1}    0.90{col 58}{space 3}0.369{col 66}{space 4}-3.31e-07{col 79}{space 3} 8.91e-07
{txt}{space 19}_cons {c |}{col 26}{res}{space 2}-.0022531{col 38}{space 2} .0005244{col 49}{space 1}   -4.30{col 58}{space 3}0.000{col 66}{space 4} -.003281{col 79}{space 3}-.0012252
{txt}{hline 25}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        cmth{col 14}{c |}{space 1}      380{col 27}{space 1}        0{col 39}{result}{space 1}      380{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}.                 est store subtallp
{txt}
{com}.         
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***SMALLER OR EQUAL 90CM, PRICES
. 
. reghdfe dlogprice i.presub3af9##ib1.treataf##i.tall i.presub2af9##ib1.treataf##i.tall i.presub1af9##ib1.treataf##i.tall i.sub1af9##ib1.treataf##i.tall i.sub2af9##ib1.treataf##i.tall i.sub3af9##ib1.treataf##i.tall i.sub4af9##ib1.treataf##i.tall i.postsub1af9##ib1.treataf##i.tall i.postsub2af9##ib1.treataf##i.tall i.postsub3af9##ib1.treataf##i.tall  mage mage2  if samplet  , absorb(id2 cmth) cluster(id)
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treataf#1bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{txt}note: 1.tall omitted because of collinearity
{txt}note: 0.treataf#1.tall omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,381
{txt}Absorbing 2 HDFE groups{col 51}F({res}  42{txt},{res}  11691{txt}){col 67}= {res}      2.44
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4105
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0262
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.0695

{txt}{ralign 90:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 25}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 26}{c |}{col 38}    Robust
{col 1}               dlogprice{col 26}{c |} Coefficient{col 38}  std. err.{col 50}      t{col 58}   P>|t|{col 66}     [95% con{col 79}f. interval]
{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}1.presub3af9 {c |}{col 26}{res}{space 2} .0055918{col 38}{space 2} .0108066{col 49}{space 1}    0.52{col 58}{space 3}0.605{col 66}{space 4}-.0155909{col 79}{space 3} .0267745
{txt}{space 15}0.treataf {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 6}presub3af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0046239{col 38}{space 2} .0116062{col 49}{space 1}   -0.40{col 58}{space 3}0.690{col 66}{space 4}-.0273739{col 79}{space 3} .0181262
{txt}{space 24} {c |}
{space 18}1.tall {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 9}presub3af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2}-.0202682{col 38}{space 2} .0119412{col 49}{space 1}   -1.70{col 58}{space 3}0.090{col 66}{space 4} -.043675{col 79}{space 3} .0031386
{txt}{space 24} {c |}
{space 12}treataf#tall {c |}
{space 20}0 1  {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 1}presub3af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} .0195762{col 38}{space 2} .0129832{col 49}{space 1}    1.51{col 58}{space 3}0.132{col 66}{space 4} -.005873{col 79}{space 3} .0450255
{txt}{space 24} {c |}
{space 12}1.presub2af9 {c |}{col 26}{res}{space 2} .0172847{col 38}{space 2} .0136666{col 49}{space 1}    1.26{col 58}{space 3}0.206{col 66}{space 4}-.0095042{col 79}{space 3} .0440736
{txt}{space 24} {c |}
{space 6}presub2af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0221517{col 38}{space 2} .0162486{col 49}{space 1}   -1.36{col 58}{space 3}0.173{col 66}{space 4}-.0540017{col 79}{space 3} .0096984
{txt}{space 24} {c |}
{space 9}presub2af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2}-.0094044{col 38}{space 2} .0163401{col 49}{space 1}   -0.58{col 58}{space 3}0.565{col 66}{space 4}-.0414338{col 79}{space 3} .0226249
{txt}{space 24} {c |}
{space 1}presub2af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} .0157948{col 38}{space 2} .0189962{col 49}{space 1}    0.83{col 58}{space 3}0.406{col 66}{space 4}-.0214409{col 79}{space 3} .0530304
{txt}{space 24} {c |}
{space 12}1.presub1af9 {c |}{col 26}{res}{space 2} .0094478{col 38}{space 2}  .008621{col 49}{space 1}    1.10{col 58}{space 3}0.273{col 66}{space 4}-.0074508{col 79}{space 3} .0263465
{txt}{space 24} {c |}
{space 6}presub1af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0007755{col 38}{space 2} .0096497{col 49}{space 1}    0.08{col 58}{space 3}0.936{col 66}{space 4}-.0181395{col 79}{space 3} .0196905
{txt}{space 24} {c |}
{space 9}presub1af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2} .0059383{col 38}{space 2} .0099475{col 49}{space 1}    0.60{col 58}{space 3}0.551{col 66}{space 4}-.0135604{col 79}{space 3} .0254371
{txt}{space 24} {c |}
{space 1}presub1af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} -.011728{col 38}{space 2} .0112036{col 49}{space 1}   -1.05{col 58}{space 3}0.295{col 66}{space 4}-.0336889{col 79}{space 3} .0102328
{txt}{space 24} {c |}
{space 15}1.sub1af9 {c |}{col 26}{res}{space 2}-.0057587{col 38}{space 2} .0153937{col 49}{space 1}   -0.37{col 58}{space 3}0.708{col 66}{space 4}-.0359328{col 79}{space 3} .0244155
{txt}{space 24} {c |}
{space 9}sub1af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0069528{col 38}{space 2} .0175855{col 49}{space 1}    0.40{col 58}{space 3}0.693{col 66}{space 4}-.0275178{col 79}{space 3} .0414234
{txt}{space 24} {c |}
{space 12}sub1af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2} .0079218{col 38}{space 2} .0174536{col 49}{space 1}    0.45{col 58}{space 3}0.650{col 66}{space 4}-.0262902{col 79}{space 3} .0421337
{txt}{space 24} {c |}
{space 4}sub1af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2}-.0250521{col 38}{space 2}  .019862{col 49}{space 1}   -1.26{col 58}{space 3}0.207{col 66}{space 4}-.0639849{col 79}{space 3} .0138807
{txt}{space 24} {c |}
{space 15}1.sub2af9 {c |}{col 26}{res}{space 2}-.0067753{col 38}{space 2} .0120815{col 49}{space 1}   -0.56{col 58}{space 3}0.575{col 66}{space 4}-.0304571{col 79}{space 3} .0169064
{txt}{space 24} {c |}
{space 9}sub2af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0039117{col 38}{space 2} .0133231{col 49}{space 1}   -0.29{col 58}{space 3}0.769{col 66}{space 4}-.0300273{col 79}{space 3} .0222039
{txt}{space 24} {c |}
{space 12}sub2af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2} .0078117{col 38}{space 2} .0132241{col 49}{space 1}    0.59{col 58}{space 3}0.555{col 66}{space 4}-.0181097{col 79}{space 3}  .033733
{txt}{space 24} {c |}
{space 4}sub2af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} .0068602{col 38}{space 2} .0146717{col 49}{space 1}    0.47{col 58}{space 3}0.640{col 66}{space 4}-.0218989{col 79}{space 3} .0356192
{txt}{space 24} {c |}
{space 15}1.sub3af9 {c |}{col 26}{res}{space 2} .0135591{col 38}{space 2}  .024927{col 49}{space 1}    0.54{col 58}{space 3}0.586{col 66}{space 4} -.035302{col 79}{space 3} .0624203
{txt}{space 24} {c |}
{space 9}sub3af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0172507{col 38}{space 2} .0269508{col 49}{space 1}   -0.64{col 58}{space 3}0.522{col 66}{space 4}-.0700788{col 79}{space 3} .0355773
{txt}{space 24} {c |}
{space 12}sub3af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2}-.0179913{col 38}{space 2} .0272088{col 49}{space 1}   -0.66{col 58}{space 3}0.508{col 66}{space 4} -.071325{col 79}{space 3} .0353424
{txt}{space 24} {c |}
{space 4}sub3af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} .0401113{col 38}{space 2} .0297693{col 49}{space 1}    1.35{col 58}{space 3}0.178{col 66}{space 4}-.0182414{col 79}{space 3} .0984641
{txt}{space 24} {c |}
{space 15}1.sub4af9 {c |}{col 26}{res}{space 2} .0396953{col 38}{space 2} .0102815{col 49}{space 1}    3.86{col 58}{space 3}0.000{col 66}{space 4} .0195417{col 79}{space 3} .0598488
{txt}{space 24} {c |}
{space 9}sub4af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0296342{col 38}{space 2}  .012239{col 49}{space 1}   -2.42{col 58}{space 3}0.015{col 66}{space 4}-.0536247{col 79}{space 3}-.0056436
{txt}{space 24} {c |}
{space 12}sub4af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2}-.0479398{col 38}{space 2} .0115407{col 49}{space 1}   -4.15{col 58}{space 3}0.000{col 66}{space 4}-.0705615{col 79}{space 3} -.025318
{txt}{space 24} {c |}
{space 4}sub4af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} .0368707{col 38}{space 2} .0138903{col 49}{space 1}    2.65{col 58}{space 3}0.008{col 66}{space 4} .0096434{col 79}{space 3}  .064098
{txt}{space 24} {c |}
{space 11}1.postsub1af9 {c |}{col 26}{res}{space 2} .0068765{col 38}{space 2} .0121305{col 49}{space 1}    0.57{col 58}{space 3}0.571{col 66}{space 4}-.0169013{col 79}{space 3} .0306543
{txt}{space 24} {c |}
{space 5}postsub1af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2}-.0085139{col 38}{space 2} .0141038{col 49}{space 1}   -0.60{col 58}{space 3}0.546{col 66}{space 4}-.0361598{col 79}{space 3}  .019132
{txt}{space 24} {c |}
{space 8}postsub1af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2}-.0165556{col 38}{space 2}  .014499{col 49}{space 1}   -1.14{col 58}{space 3}0.254{col 66}{space 4} -.044976{col 79}{space 3} .0118647
{txt}{space 24} {c |}
postsub1af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2}  .020113{col 38}{space 2}  .016811{col 49}{space 1}    1.20{col 58}{space 3}0.232{col 66}{space 4}-.0128394{col 79}{space 3} .0530654
{txt}{space 24} {c |}
{space 11}1.postsub2af9 {c |}{col 26}{res}{space 2} .0140704{col 38}{space 2} .0176375{col 49}{space 1}    0.80{col 58}{space 3}0.425{col 66}{space 4}-.0205022{col 79}{space 3} .0486429
{txt}{space 24} {c |}
{space 5}postsub2af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} -.012322{col 38}{space 2} .0199001{col 49}{space 1}   -0.62{col 58}{space 3}0.536{col 66}{space 4}-.0513294{col 79}{space 3} .0266855
{txt}{space 24} {c |}
{space 8}postsub2af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2} .0084345{col 38}{space 2} .0196656{col 49}{space 1}    0.43{col 58}{space 3}0.668{col 66}{space 4}-.0301133{col 79}{space 3} .0469823
{txt}{space 24} {c |}
postsub2af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2} .0000282{col 38}{space 2} .0223894{col 49}{space 1}    0.00{col 58}{space 3}0.999{col 66}{space 4}-.0438589{col 79}{space 3} .0439152
{txt}{space 24} {c |}
{space 11}1.postsub3af9 {c |}{col 26}{res}{space 2}-.0340167{col 38}{space 2} .0116388{col 49}{space 1}   -2.92{col 58}{space 3}0.003{col 66}{space 4}-.0568308{col 79}{space 3}-.0112027
{txt}{space 24} {c |}
{space 5}postsub3af9#treataf {c |}
{space 20}1 0  {c |}{col 26}{res}{space 2} .0339063{col 38}{space 2} .0142734{col 49}{space 1}    2.38{col 58}{space 3}0.018{col 66}{space 4} .0059281{col 79}{space 3} .0618846
{txt}{space 24} {c |}
{space 8}postsub3af9#tall {c |}
{space 20}1 1  {c |}{col 26}{res}{space 2} .0373598{col 38}{space 2} .0141745{col 49}{space 1}    2.64{col 58}{space 3}0.008{col 66}{space 4} .0095755{col 79}{space 3} .0651442
{txt}{space 24} {c |}
postsub3af9#treataf#tall {c |}
{space 18}1 0 1  {c |}{col 26}{res}{space 2}-.0366842{col 38}{space 2} .0171829{col 49}{space 1}   -2.13{col 58}{space 3}0.033{col 66}{space 4}-.0703656{col 79}{space 3}-.0030027
{txt}{space 24} {c |}
{space 20}mage {c |}{col 26}{res}{space 2}-.0000101{col 38}{space 2} .0000299{col 49}{space 1}   -0.34{col 58}{space 3}0.735{col 66}{space 4}-.0000688{col 79}{space 3} .0000486
{txt}{space 19}mage2 {c |}{col 26}{res}{space 2} 2.80e-07{col 38}{space 2} 3.12e-07{col 49}{space 1}    0.90{col 58}{space 3}0.369{col 66}{space 4}-3.31e-07{col 79}{space 3} 8.91e-07
{txt}{space 19}_cons {c |}{col 26}{res}{space 2}-.0022531{col 38}{space 2} .0005244{col 49}{space 1}   -4.30{col 58}{space 3}0.000{col 66}{space 4} -.003281{col 79}{space 3}-.0012252
{txt}{hline 25}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        cmth{col 14}{c |}{space 1}      380{col 27}{space 1}        0{col 39}{result}{space 1}      380{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}.                 est store subshortp
{txt}
{com}. 
. 
.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. 
. ***TABLES
. **UNITS AND PRICES
. esttab   subu nonsubu subp nonsubp , se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9) keep(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9) 
{res}
{txt}{hline 76}
{txt}                      (1)             (2)             (3)             (4)   
{txt}                     subu         nonsubu            subp         nonsubp   
{txt}{hline 76}
{txt}1.presub3af9{res}       -0.212***        0.085***       -0.010**         0.001   {txt}
            {res} {ralign 12:{txt:(}0.060{txt:)}}    {ralign 12:{txt:(}0.026{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}    {ralign 12:{txt:(}0.002{txt:)}}   {txt}
{txt}1.presub2af9{res}       -0.105           0.039           0.010          -0.000   {txt}
            {res} {ralign 12:{txt:(}0.086{txt:)}}    {ralign 12:{txt:(}0.039{txt:)}}    {ralign 12:{txt:(}0.008{txt:)}}    {ralign 12:{txt:(}0.004{txt:)}}   {txt}
{txt}1.presub1af9{res}       -0.121***       -0.040*          0.014***        0.006** {txt}
            {res} {ralign 12:{txt:(}0.042{txt:)}}    {ralign 12:{txt:(}0.024{txt:)}}    {ralign 12:{txt:(}0.004{txt:)}}    {ralign 12:{txt:(}0.002{txt:)}}   {txt}
{txt}1.sub1af9   {res}        0.824***        0.081**         0.001          -0.012***{txt}
            {res} {ralign 12:{txt:(}0.088{txt:)}}    {ralign 12:{txt:(}0.041{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.004{txt:)}}   {txt}
{txt}1.sub2af9   {res}       -0.186***       -0.034          -0.000           0.000   {txt}
            {res} {ralign 12:{txt:(}0.057{txt:)}}    {ralign 12:{txt:(}0.029{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}    {ralign 12:{txt:(}0.003{txt:)}}   {txt}
{txt}1.sub3af9   {res}        0.338***        0.114**        -0.001           0.013** {txt}
            {res} {ralign 12:{txt:(}0.090{txt:)}}    {ralign 12:{txt:(}0.053{txt:)}}    {ralign 12:{txt:(}0.010{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}   {txt}
{txt}1.sub4af9   {res}       -0.018          -0.039           0.001           0.002   {txt}
            {res} {ralign 12:{txt:(}0.057{txt:)}}    {ralign 12:{txt:(}0.032{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}    {ralign 12:{txt:(}0.003{txt:)}}   {txt}
{txt}1.postsub1~9{res}       -0.272***        0.023          -0.007           0.001   {txt}
            {res} {ralign 12:{txt:(}0.076{txt:)}}    {ralign 12:{txt:(}0.045{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.004{txt:)}}   {txt}
{txt}1.postsub2~9{res}        0.176**         0.006           0.021***        0.008*  {txt}
            {res} {ralign 12:{txt:(}0.076{txt:)}}    {ralign 12:{txt:(}0.051{txt:)}}    {ralign 12:{txt:(}0.008{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}   {txt}
{txt}1.postsub3~9{res}       -0.192**         0.020          -0.004           0.000   {txt}
            {res} {ralign 12:{txt:(}0.086{txt:)}}    {ralign 12:{txt:(}0.043{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.004{txt:)}}   {txt}
{txt}{hline 76}
{txt}N           {res}       537385          537385          537385          537385   {txt}
{txt}{hline 76}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subu nonsubu subp nonsubp using "R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_09.tex", replace  se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9) keep(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9 ) 
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_09.tex"'})

{com}. 
. esttab   subu_cy subu_trends,  se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9) keep(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9)
{res}
{txt}{hline 44}
{txt}                      (1)             (2)   
{txt}                  subu_cy     subu_trends   
{txt}{hline 44}
{txt}1.presub3af9{res}       -0.211***       -0.201***{txt}
            {res} {ralign 12:{txt:(}0.061{txt:)}}    {ralign 12:{txt:(}0.060{txt:)}}   {txt}
{txt}1.presub2af9{res}       -0.104          -0.094   {txt}
            {res} {ralign 12:{txt:(}0.087{txt:)}}    {ralign 12:{txt:(}0.086{txt:)}}   {txt}
{txt}1.presub1af9{res}       -0.121***       -0.110***{txt}
            {res} {ralign 12:{txt:(}0.044{txt:)}}    {ralign 12:{txt:(}0.043{txt:)}}   {txt}
{txt}1.sub1af9   {res}        0.825***        0.835***{txt}
            {res} {ralign 12:{txt:(}0.089{txt:)}}    {ralign 12:{txt:(}0.088{txt:)}}   {txt}
{txt}1.sub2af9   {res}       -0.186***       -0.175***{txt}
            {res} {ralign 12:{txt:(}0.058{txt:)}}    {ralign 12:{txt:(}0.057{txt:)}}   {txt}
{txt}1.sub3af9   {res}        0.339***        0.349***{txt}
            {res} {ralign 12:{txt:(}0.090{txt:)}}    {ralign 12:{txt:(}0.090{txt:)}}   {txt}
{txt}1.sub4af9   {res}       -0.018          -0.008   {txt}
            {res} {ralign 12:{txt:(}0.058{txt:)}}    {ralign 12:{txt:(}0.057{txt:)}}   {txt}
{txt}1.postsub1~9{res}       -0.285***       -0.261***{txt}
            {res} {ralign 12:{txt:(}0.076{txt:)}}    {ralign 12:{txt:(}0.076{txt:)}}   {txt}
{txt}1.postsub2~9{res}        0.176**         0.185** {txt}
            {res} {ralign 12:{txt:(}0.077{txt:)}}    {ralign 12:{txt:(}0.076{txt:)}}   {txt}
{txt}1.postsub3~9{res}       -0.192**        -0.183** {txt}
            {res} {ralign 12:{txt:(}0.087{txt:)}}    {ralign 12:{txt:(}0.086{txt:)}}   {txt}
{txt}{hline 44}
{txt}N           {res}       537385          537385   {txt}
{txt}{hline 44}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subu_cy subu_trends using "R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_09_cy.tex", replace  se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9) keep(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9) 
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_09_cy.tex"'})

{com}. 
. **UNITS AND PRICES BY HEIGHT
. esttab  subtallu subshortu  subtallp subshortp , se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9 ) keep(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9) 
{res}
{txt}{hline 76}
{txt}                      (1)             (2)             (3)             (4)   
{txt}                 subtallu       subshortu        subtallp       subshortp   
{txt}{hline 76}
{txt}1.presub3af9{res}       -0.190***       -0.284***       -0.015***        0.006   {txt}
            {res} {ralign 12:{txt:(}0.070{txt:)}}    {ralign 12:{txt:(}0.110{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}    {ralign 12:{txt:(}0.011{txt:)}}   {txt}
{txt}1.presub2af9{res}       -0.131          -0.003           0.008           0.017   {txt}
            {res} {ralign 12:{txt:(}0.093{txt:)}}    {ralign 12:{txt:(}0.218{txt:)}}    {ralign 12:{txt:(}0.009{txt:)}}    {ralign 12:{txt:(}0.014{txt:)}}   {txt}
{txt}1.presub1af9{res}       -0.130***       -0.077           0.015***        0.009   {txt}
            {res} {ralign 12:{txt:(}0.048{txt:)}}    {ralign 12:{txt:(}0.091{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}    {ralign 12:{txt:(}0.009{txt:)}}   {txt}
{txt}1.sub1af9   {res}        0.803***        0.915***        0.002          -0.006   {txt}
            {res} {ralign 12:{txt:(}0.102{txt:)}}    {ralign 12:{txt:(}0.155{txt:)}}    {ralign 12:{txt:(}0.008{txt:)}}    {ralign 12:{txt:(}0.015{txt:)}}   {txt}
{txt}1.sub2af9   {res}       -0.181***       -0.214*          0.001          -0.007   {txt}
            {res} {ralign 12:{txt:(}0.063{txt:)}}    {ralign 12:{txt:(}0.130{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}    {ralign 12:{txt:(}0.012{txt:)}}   {txt}
{txt}1.sub3af9   {res}        0.277***        0.636***       -0.004           0.014   {txt}
            {res} {ralign 12:{txt:(}0.098{txt:)}}    {ralign 12:{txt:(}0.208{txt:)}}    {ralign 12:{txt:(}0.011{txt:)}}    {ralign 12:{txt:(}0.025{txt:)}}   {txt}
{txt}1.sub4af9   {res}        0.016          -0.171          -0.008           0.040***{txt}
            {res} {ralign 12:{txt:(}0.061{txt:)}}    {ralign 12:{txt:(}0.144{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}    {ralign 12:{txt:(}0.010{txt:)}}   {txt}
{txt}1.postsub1~9{res}       -0.327***        0.010          -0.010           0.007   {txt}
            {res} {ralign 12:{txt:(}0.084{txt:)}}    {ralign 12:{txt:(}0.155{txt:)}}    {ralign 12:{txt:(}0.008{txt:)}}    {ralign 12:{txt:(}0.012{txt:)}}   {txt}
{txt}1.postsub2~9{res}        0.228***       -0.068           0.023***        0.014   {txt}
            {res} {ralign 12:{txt:(}0.085{txt:)}}    {ralign 12:{txt:(}0.163{txt:)}}    {ralign 12:{txt:(}0.009{txt:)}}    {ralign 12:{txt:(}0.018{txt:)}}   {txt}
{txt}1.postsub3~9{res}       -0.170*         -0.311*          0.003          -0.034***{txt}
            {res} {ralign 12:{txt:(}0.098{txt:)}}    {ralign 12:{txt:(}0.168{txt:)}}    {ralign 12:{txt:(}0.008{txt:)}}    {ralign 12:{txt:(}0.012{txt:)}}   {txt}
{txt}{hline 76}
{txt}N           {res}       537381          537381          537381          537381   {txt}
{txt}{hline 76}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subtallu subshortu  subtallp subshortp  using "R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_09_tall.tex", replace  se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9 ) keep(1.presub3af9 1.presub2af9 1.presub1af9 1.sub1af9 1.sub2af9 1.sub3af9 1.sub4af9 1.postsub1af9 1.postsub2af9 1.postsub3af9)             
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_09_tall.tex"'})

{com}.                 
.         
. restore
{txt}
{com}. 
. preserve        
{txt}
{com}. 
. ********************************************************************************************************************************************************************************************************************
. *************************************************AUSTRIA************************************************************************************************************************************************************
. *************************************************Refrigerator-Freezer Program**2010*********************************************************************************************************************************
. *************************************************Effects on Unit Sales and Prices of Subsidized and Non-subsidized**************************************************************************************************
. ********************************************************************************************************************************************************************************************************************
. 
. set more off
{txt}
{com}. 
. gen tall=0
{txt}
{com}. replace tall=1 if (main_type!="1 DOOR 81 - 90 CM" & main_type!="1 DOOR UP TO 80 CM")
{txt}(2,275,344 real changes made)

{com}. 
. egen cmt=group(country month treataf)
{txt}(772,376 missing values generated)

{com}. egen cy =group(country year)
{txt}
{com}. encode country, gen(c)
{txt}
{com}. 
. xtset id2

{txt}{col 1}Panel variable: {res}id2{txt} (unbalanced)

{com}. 
. drop if category=="washing machine"
{txt}(772,376 observations deleted)

{com}. egen median=median(price) if year==2010 & treataf==1 & month==7
{txt}(1,739,471 missing values generated)

{com}. gen mprice=1 if price>median & treataf==1 & year==2010 & month==7 & price!=.
{txt}(1,740,448 missing values generated)

{com}. replace mprice=0 if price<=median & treataf==1 & year==2010 & month==7 & price!=.
{txt}(538 real changes made)

{com}. by id, sort: egen summp=sum(mprice)
{txt}
{com}. by id, sort: gen medprice=1 if summp>0
{txt}(1,684,371 missing values generated)

{com}. replace medprice=0 if summp==0
{txt}(1,684,371 real changes made)

{com}. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***UNIT SALES, SUBSIDIZED (3-MONTH WINDOW)
. 
. reghdfe dlogunits i.presub3af10##ib1.treataf i.presub2af10##ib1.treataf i.presub1af10##ib1.treataf i.sub1af10##ib1.treataf i.sub2af10##ib1.treataf i.sub3af10##ib1.treataf i.postsub1af10##ib1.treataf i.postsub2af10##ib1.treataf i.postsub3af10##ib1.treataf  mage mage2 , absorb(id2 cmt) cluster(id)
{res}{txt}(dropped 212751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 2 HDFE groups{col 51}F({res}  20{txt},{res}  11691{txt}){col 67}= {res}     11.08
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4452
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0842
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6955

{txt}{ralign 86:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}           dlogunits{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}1.presub3af10 {c |}{col 22}{res}{space 2} .0733191{col 34}{space 2} .0891179{col 45}{space 1}    0.82{col 54}{space 3}0.411{col 62}{space 4} -.101367{col 75}{space 3} .2480051
{txt}{space 11}0.treataf {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 1}presub3af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0417817{col 34}{space 2} .1019537{col 45}{space 1}   -0.41{col 54}{space 3}0.682{col 62}{space 4}-.2416279{col 75}{space 3} .1580646
{txt}{space 20} {c |}
{space 7}1.presub2af10 {c |}{col 22}{res}{space 2}-.1085019{col 34}{space 2} .0794207{col 45}{space 1}   -1.37{col 54}{space 3}0.172{col 62}{space 4}-.2641797{col 75}{space 3}  .047176
{txt}{space 20} {c |}
{space 1}presub2af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0143118{col 34}{space 2} .0889979{col 45}{space 1}    0.16{col 54}{space 3}0.872{col 62}{space 4}-.1601389{col 75}{space 3} .1887625
{txt}{space 20} {c |}
{space 7}1.presub1af10 {c |}{col 22}{res}{space 2}-.1259205{col 34}{space 2} .0854911{col 45}{space 1}   -1.47{col 54}{space 3}0.141{col 62}{space 4}-.2934973{col 75}{space 3} .0416564
{txt}{space 20} {c |}
{space 1}presub1af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .1773371{col 34}{space 2} .0959659{col 45}{space 1}    1.85{col 54}{space 3}0.065{col 62}{space 4}-.0107721{col 75}{space 3} .3654463
{txt}{space 20} {c |}
{space 10}1.sub1af10 {c |}{col 22}{res}{space 2}  .513684{col 34}{space 2} .0781717{col 45}{space 1}    6.57{col 54}{space 3}0.000{col 62}{space 4} .3604544{col 75}{space 3} .6669137
{txt}{space 20} {c |}
{space 4}sub1af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.5350605{col 34}{space 2} .0876618{col 45}{space 1}   -6.10{col 54}{space 3}0.000{col 62}{space 4}-.7068922{col 75}{space 3}-.3632288
{txt}{space 20} {c |}
{space 10}1.sub2af10 {c |}{col 22}{res}{space 2} .0965368{col 34}{space 2} .0759391{col 45}{space 1}    1.27{col 54}{space 3}0.204{col 62}{space 4}-.0523165{col 75}{space 3}   .24539
{txt}{space 20} {c |}
{space 4}sub2af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0061497{col 34}{space 2} .0906122{col 45}{space 1}   -0.07{col 54}{space 3}0.946{col 62}{space 4}-.1837648{col 75}{space 3} .1714655
{txt}{space 20} {c |}
{space 10}1.sub3af10 {c |}{col 22}{res}{space 2}-.0436186{col 34}{space 2} .0660563{col 45}{space 1}   -0.66{col 54}{space 3}0.509{col 62}{space 4}   -.1731{col 75}{space 3} .0858629
{txt}{space 20} {c |}
{space 4}sub3af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0341015{col 34}{space 2}  .078343{col 45}{space 1}    0.44{col 54}{space 3}0.663{col 62}{space 4}-.1194637{col 75}{space 3} .1876668
{txt}{space 20} {c |}
{space 6}1.postsub1af10 {c |}{col 22}{res}{space 2}-.1925772{col 34}{space 2} .0695964{col 45}{space 1}   -2.77{col 54}{space 3}0.006{col 62}{space 4}-.3289978{col 75}{space 3}-.0561567
{txt}{space 20} {c |}
postsub1af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .1553542{col 34}{space 2} .0850543{col 45}{space 1}    1.83{col 54}{space 3}0.068{col 62}{space 4}-.0113665{col 75}{space 3} .3220748
{txt}{space 20} {c |}
{space 6}1.postsub2af10 {c |}{col 22}{res}{space 2}-.1447465{col 34}{space 2} .0591904{col 45}{space 1}   -2.45{col 54}{space 3}0.014{col 62}{space 4}-.2607697{col 75}{space 3}-.0287234
{txt}{space 20} {c |}
postsub2af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}  .012648{col 34}{space 2}  .073467{col 45}{space 1}    0.17{col 54}{space 3}0.863{col 62}{space 4}-.1313595{col 75}{space 3} .1566556
{txt}{space 20} {c |}
{space 6}1.postsub3af10 {c |}{col 22}{res}{space 2}-.0102723{col 34}{space 2}  .071937{col 45}{space 1}   -0.14{col 54}{space 3}0.886{col 62}{space 4}-.1512808{col 75}{space 3} .1307361
{txt}{space 20} {c |}
postsub3af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}  .056745{col 34}{space 2} .0866273{col 45}{space 1}    0.66{col 54}{space 3}0.512{col 62}{space 4} -.113059{col 75}{space 3}  .226549
{txt}{space 20} {c |}
{space 16}mage {c |}{col 22}{res}{space 2} -.002898{col 34}{space 2} .0003153{col 45}{space 1}   -9.19{col 54}{space 3}0.000{col 62}{space 4}-.0035162{col 75}{space 3}-.0022799
{txt}{space 15}mage2 {c |}{col 22}{res}{space 2} .0000212{col 34}{space 2} 3.47e-06{col 45}{space 1}    6.11{col 54}{space 3}0.000{col 62}{space 4} .0000144{col 75}{space 3}  .000028
{txt}{space 15}_cons {c |}{col 22}{res}{space 2} .0424736{col 34}{space 2} .0053218{col 45}{space 1}    7.98{col 54}{space 3}0.000{col 62}{space 4}  .032042{col 75}{space 3} .0529052
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu
{txt}
{com}. generate samples = e(sample)
{txt}
{com}. codebook id if samples

{txt}{hline}
{res}id{right:(unlabeled)}
{txt}{hline}

{col 19}Type: String ({res}str11{txt})

{col 10}Unique values: {res}11,692{col 51}{txt}Missing "": {res}0{txt}/{res}537,385

{txt}{col 15}Examples: {res}"27608490"
{col 25}"37374549"
{col 25}"58629776"
{col 25}"75437788"
{txt}
{com}. codebook id if samples & treataf==1

{txt}{hline}
{res}id{right:(unlabeled)}
{txt}{hline}

{col 19}Type: String ({res}str11{txt})

{col 10}Unique values: {res}2,938{col 51}{txt}Missing "": {res}0{txt}/{res}121,535

{txt}{col 15}Examples: {res}"53251042"
{col 25}"62758713"
{col 25}"74683891"
{col 25}"83632667"
{txt}
{com}.                 
.                 
.                 ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1af10])*(1+exp(_b[1.presub2af10]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*exp(_b[1.sub2af10])*exp(_b[1.sub3af10])*exp(_b[1.postsub1af10])*(1+exp(_b[1.postsub2af10]))-2)), post;

     {txt}program: {res}1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1af10])*(1+exp(_b[1.presub2af10]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*exp(_b[1.sub2af10])*exp(_b[1.sub3af10])*exp(_b[1.postsub1af10])*(1+exp(_b[1.postsub2af10]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .3907702{col 26}{space 2} .1485371{col 37}{space 1}    2.63{col 46}{space 3}0.009{col 54}{space 4} .0996429{col 67}{space 3} .6818975
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.1636437{col 26}{space 2} .0679396{col 37}{space 1}   -2.41{col 46}{space 3}0.016{col 54}{space 4}-.2968028{col 67}{space 3}-.0304846
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .0723431{col 26}{space 2} .1284517{col 37}{space 1}    0.56{col 46}{space 3}0.573{col 54}{space 4}-.1794177{col 67}{space 3} .3241039
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .3299031{col 26}{space 2} .2533249{col 37}{space 1}    1.30{col 46}{space 3}0.193{col 54}{space 4}-.1666047{col 67}{space 3} .8264109
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost
.                 nlcom           1000*1641366/((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)

       {txt}_nl_1: {res}1000*1641366/((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 374.6065{col 26}{space 2} 287.6517{col 37}{space 1}    1.30{col 46}{space 3}0.193{col 54}{space 4}-189.1804{col 67}{space 3} 938.3934
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost (25th percentile)
.                 nlcom           1000*1641366/((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*93)

       {txt}_nl_1: {res}1000*1641366/((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*93)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 216.9898{col 26}{space 2} 166.6215{col 37}{space 1}    1.30{col 46}{space 3}0.193{col 54}{space 4}-109.5822{col 67}{space 3} 543.5619
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost (10th percentile)
.                 nlcom           1000*1641366/((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*132.84)

       {txt}_nl_1: {res}1000*1641366/((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*132.84)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 151.9125{col 26}{space 2} 116.6501{col 37}{space 1}    1.30{col 46}{space 3}0.193{col 54}{space 4}-76.71745{col 67}{space 3} 380.5424
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Energy savings
.                 nlcom           ((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)/1000, level (90)

       {txt}_nl_1: {res}((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 4381.573{col 26}{space 2} 3364.508{col 37}{space 1}    1.30{col 46}{space 3}0.193{col 54}{space 4}-1152.551{col 67}{space 3} 9915.697
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.                 
.                 ***Energy savings in MWh
.                 nlcom           ((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)/1000, level(90)

       {txt}_nl_1: {res}((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 4381.573{col 26}{space 2} 3364.508{col 37}{space 1}    1.30{col 46}{space 3}0.193{col 54}{space 4}-1152.551{col 67}{space 3} 9915.697
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***UNIT SALES, SUBSIDIZED (CY-fixed effects)
. 
. reghdfe dlogunits i.presub3af10##ib1.treataf i.presub2af10##ib1.treataf i.presub1af10##ib1.treataf i.sub1af10##ib1.treataf i.sub2af10##ib1.treataf i.sub3af10##ib1.treataf i.postsub1af10##ib1.treataf i.postsub2af10##ib1.treataf i.postsub3af10##ib1.treataf  mage mage2 , absorb(id2 cmt cy) cluster(id)
{res}{txt}(dropped 212751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 16 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 3 HDFE groups{col 51}F({res}  20{txt},{res}  11691{txt}){col 67}= {res}     11.95
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4454
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0843
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6955

{txt}{ralign 86:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}           dlogunits{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}1.presub3af10 {c |}{col 22}{res}{space 2} .0970515{col 34}{space 2} .0911414{col 45}{space 1}    1.06{col 54}{space 3}0.287{col 62}{space 4}-.0816009{col 75}{space 3} .2757039
{txt}{space 11}0.treataf {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 1}presub3af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0455256{col 34}{space 2} .1018964{col 45}{space 1}   -0.45{col 54}{space 3}0.655{col 62}{space 4}-.2452595{col 75}{space 3} .1542084
{txt}{space 20} {c |}
{space 7}1.presub2af10 {c |}{col 22}{res}{space 2} -.084794{col 34}{space 2} .0809651{col 45}{space 1}   -1.05{col 54}{space 3}0.295{col 62}{space 4}-.2434991{col 75}{space 3} .0739112
{txt}{space 20} {c |}
{space 1}presub2af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0106624{col 34}{space 2} .0891292{col 45}{space 1}    0.12{col 54}{space 3}0.905{col 62}{space 4}-.1640458{col 75}{space 3} .1853706
{txt}{space 20} {c |}
{space 7}1.presub1af10 {c |}{col 22}{res}{space 2}-.1025631{col 34}{space 2} .0859138{col 45}{space 1}   -1.19{col 54}{space 3}0.233{col 62}{space 4}-.2709685{col 75}{space 3} .0658422
{txt}{space 20} {c |}
{space 1}presub1af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .1729121{col 34}{space 2} .0959753{col 45}{space 1}    1.80{col 54}{space 3}0.072{col 62}{space 4}-.0152155{col 75}{space 3} .3610398
{txt}{space 20} {c |}
{space 10}1.sub1af10 {c |}{col 22}{res}{space 2} .5368882{col 34}{space 2} .0795267{col 45}{space 1}    6.75{col 54}{space 3}0.000{col 62}{space 4} .3810026{col 75}{space 3} .6927738
{txt}{space 20} {c |}
{space 4}sub1af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.5387599{col 34}{space 2} .0877292{col 45}{space 1}   -6.14{col 54}{space 3}0.000{col 62}{space 4}-.7107238{col 75}{space 3}-.3667961
{txt}{space 20} {c |}
{space 10}1.sub2af10 {c |}{col 22}{res}{space 2}  .119578{col 34}{space 2} .0770319{col 45}{space 1}    1.55{col 54}{space 3}0.121{col 62}{space 4}-.0314173{col 75}{space 3} .2705733
{txt}{space 20} {c |}
{space 4}sub2af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0107213{col 34}{space 2} .0907403{col 45}{space 1}   -0.12{col 54}{space 3}0.906{col 62}{space 4}-.1885875{col 75}{space 3} .1671449
{txt}{space 20} {c |}
{space 10}1.sub3af10 {c |}{col 22}{res}{space 2}-.0203238{col 34}{space 2} .0671545{col 45}{space 1}   -0.30{col 54}{space 3}0.762{col 62}{space 4}-.1519578{col 75}{space 3} .1113102
{txt}{space 20} {c |}
{space 4}sub3af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}  .029639{col 34}{space 2}  .078357{col 45}{space 1}    0.38{col 54}{space 3}0.705{col 62}{space 4}-.1239537{col 75}{space 3} .1832317
{txt}{space 20} {c |}
{space 6}1.postsub1af10 {c |}{col 22}{res}{space 2}-.1691041{col 34}{space 2} .0707888{col 45}{space 1}   -2.39{col 54}{space 3}0.017{col 62}{space 4}-.3078619{col 75}{space 3}-.0303462
{txt}{space 20} {c |}
postsub1af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .1500533{col 34}{space 2} .0850477{col 45}{space 1}    1.76{col 54}{space 3}0.078{col 62}{space 4}-.0166543{col 75}{space 3} .3167609
{txt}{space 20} {c |}
{space 6}1.postsub2af10 {c |}{col 22}{res}{space 2}-.1631634{col 34}{space 2} .0603626{col 45}{space 1}   -2.70{col 54}{space 3}0.007{col 62}{space 4}-.2814842{col 75}{space 3}-.0448425
{txt}{space 20} {c |}
postsub2af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0180265{col 34}{space 2} .0736217{col 45}{space 1}    0.24{col 54}{space 3}0.807{col 62}{space 4}-.1262843{col 75}{space 3} .1623373
{txt}{space 20} {c |}
{space 6}1.postsub3af10 {c |}{col 22}{res}{space 2}-.0141704{col 34}{space 2} .0730042{col 45}{space 1}   -0.19{col 54}{space 3}0.846{col 62}{space 4}-.1572707{col 75}{space 3} .1289299
{txt}{space 20} {c |}
postsub3af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0537733{col 34}{space 2} .0866818{col 45}{space 1}    0.62{col 54}{space 3}0.535{col 62}{space 4}-.1161375{col 75}{space 3}  .223684
{txt}{space 20} {c |}
{space 16}mage {c |}{col 22}{res}{space 2}-.0033019{col 34}{space 2} .0003286{col 45}{space 1}  -10.05{col 54}{space 3}0.000{col 62}{space 4} -.003946{col 75}{space 3}-.0026577
{txt}{space 15}mage2 {c |}{col 22}{res}{space 2} .0000254{col 34}{space 2} 3.65e-06{col 45}{space 1}    6.95{col 54}{space 3}0.000{col 62}{space 4} .0000182{col 75}{space 3} .0000325
{txt}{space 15}_cons {c |}{col 22}{res}{space 2} .0488778{col 34}{space 2} .0055155{col 45}{space 1}    8.86{col 54}{space 3}0.000{col 62}{space 4} .0380666{col 75}{space 3}  .059689
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}          cy{col 14}{c |}{space 1}      108{col 27}{space 1}        8{col 39}{result}{space 1}      100{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu_cy
{txt}
{com}.                 
.                 ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1af10])*(1+exp(_b[1.presub2af10]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*exp(_b[1.sub2af10])*exp(_b[1.sub3af10])*exp(_b[1.postsub1af10])*(1+exp(_b[1.postsub2af10]))-2)), post;

     {txt}program: {res}1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1af10])*(1+exp(_b[1.presub2af10]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*exp(_b[1.sub2af10])*exp(_b[1.sub3af10])*exp(_b[1.postsub1af10])*(1+exp(_b[1.postsub2af10]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .5277933{col 26}{space 2} .1823415{col 37}{space 1}    2.89{col 46}{space 3}0.004{col 54}{space 4} .1704105{col 67}{space 3} .8851761
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.1341656{col 26}{space 2} .0718711{col 37}{space 1}   -1.87{col 46}{space 3}0.062{col 54}{space 4}-.2750304{col 67}{space 3} .0066991
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .2231428{col 26}{space 2} .1746792{col 37}{space 1}    1.28{col 46}{space 3}0.201{col 54}{space 4}-.1192222{col 67}{space 3} .5655079
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .5871115{col 26}{space 2} .3195969{col 37}{space 1}    1.84{col 46}{space 3}0.066{col 54}{space 4} -.039287{col 67}{space 3}  1.21351
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost
.                 nlcom           1000*1641366/((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)

       {txt}_nl_1: {res}1000*1641366/((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 210.4947{col 26}{space 2} 114.5838{col 37}{space 1}    1.84{col 46}{space 3}0.066{col 54}{space 4}-14.08541{col 67}{space 3} 435.0749
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 ***Energy savings
.                 nlcom           ((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)/1000, level (90)

       {txt}_nl_1: {res}((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 7797.659{col 26}{space 2} 4244.693{col 37}{space 1}    1.84{col 46}{space 3}0.066{col 54}{space 4} 815.7604{col 67}{space 3} 14779.56
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.                 
.                 ***Energy savings in MWh
.                 nlcom           ((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)/1000, level(90)

       {txt}_nl_1: {res}((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 7797.659{col 26}{space 2} 4244.693{col 37}{space 1}    1.84{col 46}{space 3}0.066{col 54}{space 4} 815.7604{col 67}{space 3} 14779.56
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.         
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***UNIT SALES, SUBSIDIZED (country-specific linear time trends)
. 
. reghdfe dlogunits i.presub3af10##ib1.treataf i.presub2af10##ib1.treataf i.presub1af10##ib1.treataf i.sub1af10##ib1.treataf i.sub2af10##ib1.treataf i.sub3af10##ib1.treataf i.postsub1af10##ib1.treataf i.postsub2af10##ib1.treataf i.postsub3af10##ib1.treataf  mage mage2 , absorb(id2 cmt i.c#c.date) cluster(id)
{res}{txt}(dropped 212751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 41 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 3 HDFE groups{col 51}F({res}  20{txt},{res}  11691{txt}){col 67}= {res}     11.18
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4452
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0842
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6955

{txt}{ralign 86:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}           dlogunits{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}1.presub3af10 {c |}{col 22}{res}{space 2} .0802649{col 34}{space 2} .0891015{col 45}{space 1}    0.90{col 54}{space 3}0.368{col 62}{space 4} -.094389{col 75}{space 3} .2549188
{txt}{space 11}0.treataf {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 1}presub3af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0479157{col 34}{space 2} .1019353{col 45}{space 1}   -0.47{col 54}{space 3}0.638{col 62}{space 4}-.2477259{col 75}{space 3} .1518946
{txt}{space 20} {c |}
{space 7}1.presub2af10 {c |}{col 22}{res}{space 2}-.1013454{col 34}{space 2} .0795292{col 45}{space 1}   -1.27{col 54}{space 3}0.203{col 62}{space 4} -.257236{col 75}{space 3} .0545452
{txt}{space 20} {c |}
{space 1}presub2af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0085128{col 34}{space 2} .0890724{col 45}{space 1}    0.10{col 54}{space 3}0.924{col 62}{space 4} -.166084{col 75}{space 3} .1831096
{txt}{space 20} {c |}
{space 7}1.presub1af10 {c |}{col 22}{res}{space 2}-.1191911{col 34}{space 2} .0855028{col 45}{space 1}   -1.39{col 54}{space 3}0.163{col 62}{space 4} -.286791{col 75}{space 3} .0484087
{txt}{space 20} {c |}
{space 1}presub1af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .1710872{col 34}{space 2} .0959712{col 45}{space 1}    1.78{col 54}{space 3}0.075{col 62}{space 4}-.0170324{col 75}{space 3} .3592067
{txt}{space 20} {c |}
{space 10}1.sub1af10 {c |}{col 22}{res}{space 2} .5205444{col 34}{space 2} .0781822{col 45}{space 1}    6.66{col 54}{space 3}0.000{col 62}{space 4} .3672942{col 75}{space 3} .6737946
{txt}{space 20} {c |}
{space 4}sub1af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.5408815{col 34}{space 2} .0876619{col 45}{space 1}   -6.17{col 54}{space 3}0.000{col 62}{space 4}-.7127134{col 75}{space 3}-.3690495
{txt}{space 20} {c |}
{space 10}1.sub2af10 {c |}{col 22}{res}{space 2} .1028503{col 34}{space 2} .0759796{col 45}{space 1}    1.35{col 54}{space 3}0.176{col 62}{space 4}-.0460823{col 75}{space 3} .2517829
{txt}{space 20} {c |}
{space 4}sub2af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0121074{col 34}{space 2}  .090652{col 45}{space 1}   -0.13{col 54}{space 3}0.894{col 62}{space 4}-.1898004{col 75}{space 3} .1655856
{txt}{space 20} {c |}
{space 10}1.sub3af10 {c |}{col 22}{res}{space 2}-.0369402{col 34}{space 2} .0660855{col 45}{space 1}   -0.56{col 54}{space 3}0.576{col 62}{space 4}-.1664789{col 75}{space 3} .0925984
{txt}{space 20} {c |}
{space 4}sub3af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0284018{col 34}{space 2} .0783428{col 45}{space 1}    0.36{col 54}{space 3}0.717{col 62}{space 4}-.1251631{col 75}{space 3} .1819668
{txt}{space 20} {c |}
{space 6}1.postsub1af10 {c |}{col 22}{res}{space 2} -.186215{col 34}{space 2} .0696351{col 45}{space 1}   -2.67{col 54}{space 3}0.008{col 62}{space 4}-.3227115{col 75}{space 3}-.0497186
{txt}{space 20} {c |}
postsub1af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}  .149167{col 34}{space 2} .0850836{col 45}{space 1}    1.75{col 54}{space 3}0.080{col 62}{space 4}-.0176111{col 75}{space 3}  .315945
{txt}{space 20} {c |}
{space 6}1.postsub2af10 {c |}{col 22}{res}{space 2}-.1379733{col 34}{space 2} .0592116{col 45}{space 1}   -2.33{col 54}{space 3}0.020{col 62}{space 4} -.254038{col 75}{space 3}-.0219087
{txt}{space 20} {c |}
postsub2af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}  .006749{col 34}{space 2} .0734568{col 45}{space 1}    0.09{col 54}{space 3}0.927{col 62}{space 4}-.1372385{col 75}{space 3} .1507366
{txt}{space 20} {c |}
{space 6}1.postsub3af10 {c |}{col 22}{res}{space 2}-.0051216{col 34}{space 2} .0719717{col 45}{space 1}   -0.07{col 54}{space 3}0.943{col 62}{space 4}-.1461981{col 75}{space 3} .1359549
{txt}{space 20} {c |}
postsub3af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0506866{col 34}{space 2} .0866817{col 45}{space 1}    0.58{col 54}{space 3}0.559{col 62}{space 4}-.1192239{col 75}{space 3} .2205971
{txt}{space 20} {c |}
{space 16}mage {c |}{col 22}{res}{space 2}-.0030122{col 34}{space 2} .0003171{col 45}{space 1}   -9.50{col 54}{space 3}0.000{col 62}{space 4}-.0036337{col 75}{space 3}-.0023907
{txt}{space 15}mage2 {c |}{col 22}{res}{space 2} .0000222{col 34}{space 2} 3.47e-06{col 45}{space 1}    6.39{col 54}{space 3}0.000{col 62}{space 4} .0000154{col 75}{space 3}  .000029
{txt}{space 15}_cons {c |}{col 22}{res}{space 2} .0445094{col 34}{space 2} .0053854{col 45}{space 1}    8.26{col 54}{space 3}0.000{col 62}{space 4} .0339531{col 75}{space 3} .0550657
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}    c#c.date{col 14}{c |}{space 1}        8{col 27}{space 1}        0{col 39}{result}{space 1}        8{col 53}{text}?{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu_trends
{txt}
{com}.                 
.                 ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1af10])*(1+exp(_b[1.presub2af10]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*exp(_b[1.sub2af10])*exp(_b[1.sub3af10])*exp(_b[1.postsub1af10])*(1+exp(_b[1.postsub2af10]))-2)), post;

     {txt}program: {res}1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1af10])*(1+exp(_b[1.presub2af10]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*exp(_b[1.sub2af10])*exp(_b[1.sub3af10])*exp(_b[1.postsub1af10])*(1+exp(_b[1.postsub2af10]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2}  .429267{col 26}{space 2} .1534307{col 37}{space 1}    2.80{col 46}{space 3}0.005{col 54}{space 4} .1285484{col 67}{space 3} .7299856
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.1551368{col 26}{space 2} .0687224{col 37}{space 1}   -2.26{col 46}{space 3}0.024{col 54}{space 4}-.2898301{col 67}{space 3}-.0204434
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .1197371{col 26}{space 2} .1352833{col 37}{space 1}    0.89{col 46}{space 3}0.376{col 54}{space 4}-.1454134{col 67}{space 3} .3848875
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .4056672{col 26}{space 2} .2627861{col 37}{space 1}    1.54{col 46}{space 3}0.123{col 54}{space 4}-.1093841{col 67}{space 3} .9207185
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost
.                 nlcom           1000*1641366/((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)

       {txt}_nl_1: {res}1000*1641366/((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 304.6435{col 26}{space 2} 197.3442{col 37}{space 1}    1.54{col 46}{space 3}0.123{col 54}{space 4}-82.14405{col 67}{space 3}  691.431
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 ***Energy savings
.                 nlcom           ((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)/1000, level (90)

       {txt}_nl_1: {res}((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 5387.826{col 26}{space 2} 3490.166{col 37}{space 1}    1.54{col 46}{space 3}0.123{col 54}{space 4}-352.9857{col 67}{space 3} 11128.64
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.                 
.                 ***Energy savings in MWh
.                 nlcom           ((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)/1000, level(90)

       {txt}_nl_1: {res}((_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift])*13696.96*18*53.87)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 5387.826{col 26}{space 2} 3490.166{col 37}{space 1}    1.54{col 46}{space 3}0.123{col 54}{space 4}-352.9857{col 67}{space 3} 11128.64
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                         
.                         
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***UNIT SALES, SUBSIDIZED (above -below median price)                   
. 
. reghdfe dlogunits i.presub3af10##ib1.treataf##ib1.medprice i.presub2af10##ib1.treataf##ib1.medprice i.presub1af10##ib1.treataf##ib1.medprice i.sub1af10##ib1.treataf##ib1.medprice i.sub2af10##ib1.treataf##ib1.medprice i.sub3af10##ib1.treataf##ib1.medprice i.postsub1af10##ib1.treataf##ib1.medprice i.postsub2af10##ib1.treataf##ib1.medprice i.postsub3af10##ib1.treataf##ib1.medprice  mage mage2 , absorb(id2 cmt) cluster(id)
{res}{txt}(dropped 212751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.medprice{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treataf#0bn.medprice{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{txt}note: 0.medprice omitted because of collinearity
{txt}note: 0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.presub3af10#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.presub2af10#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.presub1af10#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.sub1af10#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.sub2af10#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.sub3af10#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.postsub1af10#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.postsub2af10#0.treataf#0.medprice omitted because of collinearity
{txt}note: 1.postsub3af10#0.treataf#0.medprice omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 2 HDFE groups{col 51}F({res}  29{txt},{res}  11691{txt}){col 67}= {res}      8.22
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4452
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0842
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6955

{txt}{ralign 95:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}                    dlogunits{col 31}{c |} Coefficient{col 43}  std. err.{col 55}      t{col 63}   P>|t|{col 71}     [95% con{col 84}f. interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 16}1.presub3af10 {c |}{col 31}{res}{space 2} .0322843{col 43}{space 2} .1216731{col 54}{space 1}    0.27{col 63}{space 3}0.791{col 71}{space 4}-.2062153{col 84}{space 3} .2707839
{txt}{space 20}0.treataf {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 29} {c |}
{space 10}presub3af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2}-.1065641{col 43}{space 2} .1312066{col 54}{space 1}   -0.81{col 63}{space 3}0.417{col 71}{space 4} -.363751{col 84}{space 3} .1506228
{txt}{space 29} {c |}
{space 19}0.medprice {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 29} {c |}
{space 9}presub3af10#medprice {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .1058166{col 43}{space 2} .1701809{col 54}{space 1}    0.62{col 63}{space 3}0.534{col 71}{space 4}-.2277664{col 84}{space 3} .4393997
{txt}{space 29} {c |}
{space 13}treataf#medprice {c |}
{space 25}0 0  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 25}0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 1}presub3af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 0  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 16}1.presub2af10 {c |}{col 31}{res}{space 2}-.0745097{col 43}{space 2} .0982097{col 54}{space 1}   -0.76{col 63}{space 3}0.448{col 71}{space 4}-.2670172{col 84}{space 3} .1179977
{txt}{space 29} {c |}
{space 10}presub2af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .0798718{col 43}{space 2} .1353168{col 54}{space 1}    0.59{col 63}{space 3}0.555{col 71}{space 4}-.1853717{col 84}{space 3} .3451154
{txt}{space 29} {c |}
{space 9}presub2af10#medprice {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2}-.0995523{col 43}{space 2} .1599274{col 54}{space 1}   -0.62{col 63}{space 3}0.534{col 71}{space 4}-.4130368{col 84}{space 3} .2139321
{txt}{space 29} {c |}
{space 1}presub2af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 0  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 16}1.presub1af10 {c |}{col 31}{res}{space 2}-.1758337{col 43}{space 2} .1066941{col 54}{space 1}   -1.65{col 63}{space 3}0.099{col 71}{space 4}-.3849719{col 84}{space 3} .0333044
{txt}{space 29} {c |}
{space 10}presub1af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .0842505{col 43}{space 2} .1453978{col 54}{space 1}    0.58{col 63}{space 3}0.562{col 71}{space 4}-.2007534{col 84}{space 3} .3692544
{txt}{space 29} {c |}
{space 9}presub1af10#medprice {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .1429995{col 43}{space 2}  .173426{col 54}{space 1}    0.82{col 63}{space 3}0.410{col 71}{space 4}-.1969444{col 84}{space 3} .4829434
{txt}{space 29} {c |}
{space 1}presub1af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 0  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 19}1.sub1af10 {c |}{col 31}{res}{space 2} .4756625{col 43}{space 2}  .099331{col 54}{space 1}    4.79{col 63}{space 3}0.000{col 71}{space 4} .2809571{col 84}{space 3} .6703679
{txt}{space 29} {c |}
{space 13}sub1af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2}-.5981836{col 43}{space 2} .1297878{col 54}{space 1}   -4.61{col 63}{space 3}0.000{col 71}{space 4}-.8525894{col 84}{space 3}-.3437778
{txt}{space 29} {c |}
{space 12}sub1af10#medprice {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .1011441{col 43}{space 2} .1571604{col 54}{space 1}    0.64{col 63}{space 3}0.520{col 71}{space 4}-.2069165{col 84}{space 3} .4092046
{txt}{space 29} {c |}
{space 4}sub1af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 0  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 19}1.sub2af10 {c |}{col 31}{res}{space 2} .0347587{col 43}{space 2} .1057952{col 54}{space 1}    0.33{col 63}{space 3}0.743{col 71}{space 4}-.1726175{col 84}{space 3} .2421349
{txt}{space 29} {c |}
{space 13}sub2af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2}-.0953766{col 43}{space 2} .1122337{col 54}{space 1}   -0.85{col 63}{space 3}0.395{col 71}{space 4}-.3153734{col 84}{space 3} .1246202
{txt}{space 29} {c |}
{space 12}sub2af10#medprice {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .1510046{col 43}{space 2}  .144139{col 54}{space 1}    1.05{col 63}{space 3}0.295{col 71}{space 4}-.1315319{col 84}{space 3}  .433541
{txt}{space 29} {c |}
{space 4}sub2af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 0  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 19}1.sub3af10 {c |}{col 31}{res}{space 2} .0206714{col 43}{space 2} .0934684{col 54}{space 1}    0.22{col 63}{space 3}0.825{col 71}{space 4}-.1625423{col 84}{space 3}  .203885
{txt}{space 29} {c |}
{space 13}sub3af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .1207374{col 43}{space 2}  .096307{col 54}{space 1}    1.25{col 63}{space 3}0.210{col 71}{space 4}-.0680404{col 84}{space 3} .3095152
{txt}{space 29} {c |}
{space 12}sub3af10#medprice {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2}-.1509262{col 43}{space 2} .1256385{col 54}{space 1}   -1.20{col 63}{space 3}0.230{col 71}{space 4}-.3971985{col 84}{space 3} .0953462
{txt}{space 29} {c |}
{space 4}sub3af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 0  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 15}1.postsub1af10 {c |}{col 31}{res}{space 2}-.1649274{col 43}{space 2} .0891609{col 54}{space 1}   -1.85{col 63}{space 3}0.064{col 71}{space 4}-.3396975{col 84}{space 3} .0098428
{txt}{space 29} {c |}
{space 9}postsub1af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .1940703{col 43}{space 2} .1175659{col 54}{space 1}    1.65{col 63}{space 3}0.099{col 71}{space 4}-.0363785{col 84}{space 3}  .424519
{txt}{space 29} {c |}
{space 8}postsub1af10#medprice {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2}-.0663667{col 43}{space 2} .1369736{col 54}{space 1}   -0.48{col 63}{space 3}0.628{col 71}{space 4}-.3348577{col 84}{space 3} .2021243
{txt}{space 29} {c |}
postsub1af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 0  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 15}1.postsub2af10 {c |}{col 31}{res}{space 2}-.1242753{col 43}{space 2} .0701489{col 54}{space 1}   -1.77{col 63}{space 3}0.076{col 71}{space 4}-.2617789{col 84}{space 3} .0132283
{txt}{space 29} {c |}
{space 9}postsub2af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2}  .041995{col 43}{space 2} .1081075{col 54}{space 1}    0.39{col 63}{space 3}0.698{col 71}{space 4}-.1699137{col 84}{space 3} .2539038
{txt}{space 29} {c |}
{space 8}postsub2af10#medprice {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2}-.0498187{col 43}{space 2} .1188878{col 54}{space 1}   -0.42{col 63}{space 3}0.675{col 71}{space 4}-.2828586{col 84}{space 3} .1832212
{txt}{space 29} {c |}
postsub2af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 0  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 15}1.postsub3af10 {c |}{col 31}{res}{space 2}-.0308114{col 43}{space 2} .0954345{col 54}{space 1}   -0.32{col 63}{space 3}0.747{col 71}{space 4} -.217879{col 84}{space 3} .1562561
{txt}{space 29} {c |}
{space 9}postsub3af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .0264018{col 43}{space 2} .1137005{col 54}{space 1}    0.23{col 63}{space 3}0.816{col 71}{space 4}-.1964701{col 84}{space 3} .2492737
{txt}{space 29} {c |}
{space 8}postsub3af10#medprice {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .0508823{col 43}{space 2} .1373754{col 54}{space 1}    0.37{col 63}{space 3}0.711{col 71}{space 4}-.2183964{col 84}{space 3}  .320161
{txt}{space 29} {c |}
postsub3af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 0  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 25}mage {c |}{col 31}{res}{space 2} -.002896{col 43}{space 2} .0003153{col 54}{space 1}   -9.19{col 63}{space 3}0.000{col 71}{space 4} -.003514{col 84}{space 3} -.002278
{txt}{space 24}mage2 {c |}{col 31}{res}{space 2} .0000212{col 43}{space 2} 3.47e-06{col 54}{space 1}    6.10{col 63}{space 3}0.000{col 71}{space 4} .0000144{col 84}{space 3}  .000028
{txt}{space 24}_cons {c |}{col 31}{res}{space 2} .0424341{col 43}{space 2} .0053211{col 54}{space 1}    7.97{col 63}{space 3}0.000{col 71}{space 4} .0320039{col 84}{space 3} .0528644
{txt}{hline 30}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu_above
{txt}
{com}. 
. reghdfe dlogunits i.presub3af10##ib1.treataf##ib0.medprice i.presub2af10##ib1.treataf##ib0.medprice i.presub1af10##ib1.treataf##ib0.medprice i.sub1af10##ib1.treataf##ib0.medprice i.sub2af10##ib1.treataf##ib0.medprice i.sub3af10##ib1.treataf##ib0.medprice i.postsub1af10##ib1.treataf##ib0.medprice i.postsub2af10##ib1.treataf##ib0.medprice i.postsub3af10##ib1.treataf##ib0.medprice  mage mage2 , absorb(id2 cmt) cluster(id)
{res}{txt}(dropped 212751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.medprice{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{txt}note: 1.medprice omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 2 HDFE groups{col 51}F({res}  29{txt},{res}  11691{txt}){col 67}= {res}      8.22
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4452
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0842
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6955

{txt}{ralign 95:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}                    dlogunits{col 31}{c |} Coefficient{col 43}  std. err.{col 55}      t{col 63}   P>|t|{col 71}     [95% con{col 84}f. interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 16}1.presub3af10 {c |}{col 31}{res}{space 2} .1381009{col 43}{space 2} .1215009{col 54}{space 1}    1.14{col 63}{space 3}0.256{col 71}{space 4}-.1000612{col 84}{space 3}  .376263
{txt}{space 20}0.treataf {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 29} {c |}
{space 10}presub3af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2}-.1065641{col 43}{space 2} .1312066{col 54}{space 1}   -0.81{col 63}{space 3}0.417{col 71}{space 4} -.363751{col 84}{space 3} .1506228
{txt}{space 29} {c |}
{space 19}1.medprice {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 29} {c |}
{space 9}presub3af10#medprice {c |}
{space 25}1 1  {c |}{col 31}{res}{space 2}-.1058166{col 43}{space 2} .1701809{col 54}{space 1}   -0.62{col 63}{space 3}0.534{col 71}{space 4}-.4393997{col 84}{space 3} .2277664
{txt}{space 29} {c |}
{space 13}treataf#medprice {c |}
{space 25}0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 1}presub3af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 16}1.presub2af10 {c |}{col 31}{res}{space 2}-.1740621{col 43}{space 2} .1292193{col 54}{space 1}   -1.35{col 63}{space 3}0.178{col 71}{space 4}-.4273534{col 84}{space 3} .0792293
{txt}{space 29} {c |}
{space 10}presub2af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .0798718{col 43}{space 2} .1353168{col 54}{space 1}    0.59{col 63}{space 3}0.555{col 71}{space 4}-.1853717{col 84}{space 3} .3451154
{txt}{space 29} {c |}
{space 9}presub2af10#medprice {c |}
{space 25}1 1  {c |}{col 31}{res}{space 2} .0995523{col 43}{space 2} .1599274{col 54}{space 1}    0.62{col 63}{space 3}0.534{col 71}{space 4}-.2139321{col 84}{space 3} .4130368
{txt}{space 29} {c |}
{space 1}presub2af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 16}1.presub1af10 {c |}{col 31}{res}{space 2}-.0328342{col 43}{space 2} .1387074{col 54}{space 1}   -0.24{col 63}{space 3}0.813{col 71}{space 4}-.3047239{col 84}{space 3} .2390554
{txt}{space 29} {c |}
{space 10}presub1af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .0842505{col 43}{space 2} .1453978{col 54}{space 1}    0.58{col 63}{space 3}0.562{col 71}{space 4}-.2007534{col 84}{space 3} .3692544
{txt}{space 29} {c |}
{space 9}presub1af10#medprice {c |}
{space 25}1 1  {c |}{col 31}{res}{space 2}-.1429995{col 43}{space 2}  .173426{col 54}{space 1}   -0.82{col 63}{space 3}0.410{col 71}{space 4}-.4829434{col 84}{space 3} .1969444
{txt}{space 29} {c |}
{space 1}presub1af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 19}1.sub1af10 {c |}{col 31}{res}{space 2} .5768066{col 43}{space 2} .1235769{col 54}{space 1}    4.67{col 63}{space 3}0.000{col 71}{space 4} .3345753{col 84}{space 3} .8190379
{txt}{space 29} {c |}
{space 13}sub1af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2}-.5981836{col 43}{space 2} .1297878{col 54}{space 1}   -4.61{col 63}{space 3}0.000{col 71}{space 4}-.8525894{col 84}{space 3}-.3437778
{txt}{space 29} {c |}
{space 12}sub1af10#medprice {c |}
{space 25}1 1  {c |}{col 31}{res}{space 2}-.1011441{col 43}{space 2} .1571604{col 54}{space 1}   -0.64{col 63}{space 3}0.520{col 71}{space 4}-.4092046{col 84}{space 3} .2069165
{txt}{space 29} {c |}
{space 4}sub1af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 19}1.sub2af10 {c |}{col 31}{res}{space 2} .1857633{col 43}{space 2} .1007589{col 54}{space 1}    1.84{col 63}{space 3}0.065{col 71}{space 4}-.0117409{col 84}{space 3} .3832675
{txt}{space 29} {c |}
{space 13}sub2af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2}-.0953766{col 43}{space 2} .1122337{col 54}{space 1}   -0.85{col 63}{space 3}0.395{col 71}{space 4}-.3153734{col 84}{space 3} .1246202
{txt}{space 29} {c |}
{space 12}sub2af10#medprice {c |}
{space 25}1 1  {c |}{col 31}{res}{space 2}-.1510046{col 43}{space 2}  .144139{col 54}{space 1}   -1.05{col 63}{space 3}0.295{col 71}{space 4} -.433541{col 84}{space 3} .1315319
{txt}{space 29} {c |}
{space 4}sub2af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 19}1.sub3af10 {c |}{col 31}{res}{space 2}-.1302548{col 43}{space 2} .0866074{col 54}{space 1}   -1.50{col 63}{space 3}0.133{col 71}{space 4}-.3000198{col 84}{space 3} .0395102
{txt}{space 29} {c |}
{space 13}sub3af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .1207374{col 43}{space 2}  .096307{col 54}{space 1}    1.25{col 63}{space 3}0.210{col 71}{space 4}-.0680404{col 84}{space 3} .3095152
{txt}{space 29} {c |}
{space 12}sub3af10#medprice {c |}
{space 25}1 1  {c |}{col 31}{res}{space 2} .1509262{col 43}{space 2} .1256385{col 54}{space 1}    1.20{col 63}{space 3}0.230{col 71}{space 4}-.0953462{col 84}{space 3} .3971985
{txt}{space 29} {c |}
{space 4}sub3af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 15}1.postsub1af10 {c |}{col 31}{res}{space 2}-.2312941{col 43}{space 2} .1069172{col 54}{space 1}   -2.16{col 63}{space 3}0.031{col 71}{space 4}-.4408696{col 84}{space 3}-.0217185
{txt}{space 29} {c |}
{space 9}postsub1af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .1940703{col 43}{space 2} .1175659{col 54}{space 1}    1.65{col 63}{space 3}0.099{col 71}{space 4}-.0363785{col 84}{space 3}  .424519
{txt}{space 29} {c |}
{space 8}postsub1af10#medprice {c |}
{space 25}1 1  {c |}{col 31}{res}{space 2} .0663667{col 43}{space 2} .1369736{col 54}{space 1}    0.48{col 63}{space 3}0.628{col 71}{space 4}-.2021243{col 84}{space 3} .3348577
{txt}{space 29} {c |}
postsub1af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 15}1.postsub2af10 {c |}{col 31}{res}{space 2} -.174094{col 43}{space 2}  .098961{col 54}{space 1}   -1.76{col 63}{space 3}0.079{col 71}{space 4}-.3680742{col 84}{space 3} .0198861
{txt}{space 29} {c |}
{space 9}postsub2af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2}  .041995{col 43}{space 2} .1081075{col 54}{space 1}    0.39{col 63}{space 3}0.698{col 71}{space 4}-.1699137{col 84}{space 3} .2539038
{txt}{space 29} {c |}
{space 8}postsub2af10#medprice {c |}
{space 25}1 1  {c |}{col 31}{res}{space 2} .0498187{col 43}{space 2} .1188878{col 54}{space 1}    0.42{col 63}{space 3}0.675{col 71}{space 4}-.1832212{col 84}{space 3} .2828586
{txt}{space 29} {c |}
postsub2af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 15}1.postsub3af10 {c |}{col 31}{res}{space 2} .0200708{col 43}{space 2} .1029485{col 54}{space 1}    0.19{col 63}{space 3}0.845{col 71}{space 4}-.1817254{col 84}{space 3}  .221867
{txt}{space 29} {c |}
{space 9}postsub3af10#treataf {c |}
{space 25}1 0  {c |}{col 31}{res}{space 2} .0264018{col 43}{space 2} .1137005{col 54}{space 1}    0.23{col 63}{space 3}0.816{col 71}{space 4}-.1964701{col 84}{space 3} .2492737
{txt}{space 29} {c |}
{space 8}postsub3af10#medprice {c |}
{space 25}1 1  {c |}{col 31}{res}{space 2}-.0508823{col 43}{space 2} .1373754{col 54}{space 1}   -0.37{col 63}{space 3}0.711{col 71}{space 4} -.320161{col 84}{space 3} .2183964
{txt}{space 29} {c |}
postsub3af10#treataf#medprice {c |}
{space 23}0 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 23}1 0 1  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (empty)
{space 29} {c |}
{space 25}mage {c |}{col 31}{res}{space 2} -.002896{col 43}{space 2} .0003153{col 54}{space 1}   -9.19{col 63}{space 3}0.000{col 71}{space 4} -.003514{col 84}{space 3} -.002278
{txt}{space 24}mage2 {c |}{col 31}{res}{space 2} .0000212{col 43}{space 2} 3.47e-06{col 54}{space 1}    6.10{col 63}{space 3}0.000{col 71}{space 4} .0000144{col 84}{space 3}  .000028
{txt}{space 24}_cons {c |}{col 31}{res}{space 2} .0424341{col 43}{space 2} .0053211{col 54}{space 1}    7.97{col 63}{space 3}0.000{col 71}{space 4} .0320039{col 84}{space 3} .0528644
{txt}{hline 30}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu_below
{txt}
{com}. 
. esttab   subu subu_above subu_below, se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) keep(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10)                
{res}
{txt}{hline 60}
{txt}                      (1)             (2)             (3)   
{txt}                     subu      subu_above      subu_below   
{txt}{hline 60}
{txt}1.presub3~10{res}        0.073           0.032           0.138   {txt}
            {res} {ralign 12:{txt:(}0.089{txt:)}}    {ralign 12:{txt:(}0.122{txt:)}}    {ralign 12:{txt:(}0.122{txt:)}}   {txt}
{txt}1.presub2~10{res}       -0.109          -0.075          -0.174   {txt}
            {res} {ralign 12:{txt:(}0.079{txt:)}}    {ralign 12:{txt:(}0.098{txt:)}}    {ralign 12:{txt:(}0.129{txt:)}}   {txt}
{txt}1.presub1a~0{res}       -0.126          -0.176*         -0.033   {txt}
            {res} {ralign 12:{txt:(}0.085{txt:)}}    {ralign 12:{txt:(}0.107{txt:)}}    {ralign 12:{txt:(}0.139{txt:)}}   {txt}
{txt}1.sub1af10  {res}        0.514***        0.476***        0.577***{txt}
            {res} {ralign 12:{txt:(}0.078{txt:)}}    {ralign 12:{txt:(}0.099{txt:)}}    {ralign 12:{txt:(}0.124{txt:)}}   {txt}
{txt}1.sub2af10  {res}        0.097           0.035           0.186*  {txt}
            {res} {ralign 12:{txt:(}0.076{txt:)}}    {ralign 12:{txt:(}0.106{txt:)}}    {ralign 12:{txt:(}0.101{txt:)}}   {txt}
{txt}1.sub3af10  {res}       -0.044           0.021          -0.130   {txt}
            {res} {ralign 12:{txt:(}0.066{txt:)}}    {ralign 12:{txt:(}0.093{txt:)}}    {ralign 12:{txt:(}0.087{txt:)}}   {txt}
{txt}1.postsub1~0{res}       -0.193***       -0.165*         -0.231** {txt}
            {res} {ralign 12:{txt:(}0.070{txt:)}}    {ralign 12:{txt:(}0.089{txt:)}}    {ralign 12:{txt:(}0.107{txt:)}}   {txt}
{txt}1.postsub2~0{res}       -0.145**        -0.124*         -0.174*  {txt}
            {res} {ralign 12:{txt:(}0.059{txt:)}}    {ralign 12:{txt:(}0.070{txt:)}}    {ralign 12:{txt:(}0.099{txt:)}}   {txt}
{txt}1.postsub3~0{res}       -0.010          -0.031           0.020   {txt}
            {res} {ralign 12:{txt:(}0.072{txt:)}}    {ralign 12:{txt:(}0.095{txt:)}}    {ralign 12:{txt:(}0.103{txt:)}}   {txt}
{txt}{hline 60}
{txt}N           {res}       537385          537385          537385   {txt}
{txt}{hline 60}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subu subu_above subu_below  using "R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_ff_medianprice.tex", replace  se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) keep(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) 
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_ff_medianprice.tex"'})

{com}. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++          
. ***UNIT SALES, NON-SUBSIDIZED
. 
. reghdfe dlogunits i.presub3af10##i.treataf i.presub2af10##i.treataf i.presub1af10##i.treataf i.sub1af10##i.treataf i.sub2af10##i.treataf i.sub3af10##i.treataf i.postsub1af10##i.treataf i.postsub2af10##i.treataf i.postsub3af10##i.treataf  mage mage2 , absorb(id2 cmt) cluster(id)
{res}{txt}(dropped 212751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}{txt}note: 1.treataf omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 2 HDFE groups{col 51}F({res}  20{txt},{res}  11691{txt}){col 67}= {res}     11.08
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4452
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0842
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6955

{txt}{ralign 86:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}           dlogunits{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}1.presub3af10 {c |}{col 22}{res}{space 2} .0315374{col 34}{space 2}  .049525{col 45}{space 1}    0.64{col 54}{space 3}0.524{col 62}{space 4}-.0655399{col 75}{space 3} .1286147
{txt}{space 11}1.treataf {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 1}presub3af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0417817{col 34}{space 2} .1019537{col 45}{space 1}    0.41{col 54}{space 3}0.682{col 62}{space 4}-.1580646{col 75}{space 3} .2416279
{txt}{space 20} {c |}
{space 7}1.presub2af10 {c |}{col 22}{res}{space 2}-.0941901{col 34}{space 2} .0401627{col 45}{space 1}   -2.35{col 54}{space 3}0.019{col 62}{space 4}-.1729156{col 75}{space 3}-.0154646
{txt}{space 20} {c |}
{space 1}presub2af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.0143118{col 34}{space 2} .0889979{col 45}{space 1}   -0.16{col 54}{space 3}0.872{col 62}{space 4}-.1887625{col 75}{space 3} .1601389
{txt}{space 20} {c |}
{space 7}1.presub1af10 {c |}{col 22}{res}{space 2} .0514166{col 34}{space 2} .0435979{col 45}{space 1}    1.18{col 54}{space 3}0.238{col 62}{space 4}-.0340426{col 75}{space 3} .1368758
{txt}{space 20} {c |}
{space 1}presub1af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.1773371{col 34}{space 2} .0959659{col 45}{space 1}   -1.85{col 54}{space 3}0.065{col 62}{space 4}-.3654463{col 75}{space 3} .0107721
{txt}{space 20} {c |}
{space 10}1.sub1af10 {c |}{col 22}{res}{space 2}-.0213765{col 34}{space 2} .0396688{col 45}{space 1}   -0.54{col 54}{space 3}0.590{col 62}{space 4} -.099134{col 75}{space 3}  .056381
{txt}{space 20} {c |}
{space 4}sub1af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .5350605{col 34}{space 2} .0876618{col 45}{space 1}    6.10{col 54}{space 3}0.000{col 62}{space 4} .3632288{col 75}{space 3} .7068922
{txt}{space 20} {c |}
{space 10}1.sub2af10 {c |}{col 22}{res}{space 2} .0903871{col 34}{space 2} .0494374{col 45}{space 1}    1.83{col 54}{space 3}0.068{col 62}{space 4}-.0065185{col 75}{space 3} .1872927
{txt}{space 20} {c |}
{space 4}sub2af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0061497{col 34}{space 2} .0906122{col 45}{space 1}    0.07{col 54}{space 3}0.946{col 62}{space 4}-.1714655{col 75}{space 3} .1837648
{txt}{space 20} {c |}
{space 10}1.sub3af10 {c |}{col 22}{res}{space 2} -.009517{col 34}{space 2} .0421212{col 45}{space 1}   -0.23{col 54}{space 3}0.821{col 62}{space 4}-.0920815{col 75}{space 3} .0730475
{txt}{space 20} {c |}
{space 4}sub3af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.0341015{col 34}{space 2}  .078343{col 45}{space 1}   -0.44{col 54}{space 3}0.663{col 62}{space 4}-.1876668{col 75}{space 3} .1194637
{txt}{space 20} {c |}
{space 6}1.postsub1af10 {c |}{col 22}{res}{space 2}-.0372231{col 34}{space 2} .0488947{col 45}{space 1}   -0.76{col 54}{space 3}0.446{col 62}{space 4}-.1330647{col 75}{space 3} .0586186
{txt}{space 20} {c |}
postsub1af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.1553542{col 34}{space 2} .0850543{col 45}{space 1}   -1.83{col 54}{space 3}0.068{col 62}{space 4}-.3220748{col 75}{space 3} .0113665
{txt}{space 20} {c |}
{space 6}1.postsub2af10 {c |}{col 22}{res}{space 2}-.1320985{col 34}{space 2} .0435161{col 45}{space 1}   -3.04{col 54}{space 3}0.002{col 62}{space 4}-.2173974{col 75}{space 3}-.0467996
{txt}{space 20} {c |}
postsub2af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} -.012648{col 34}{space 2}  .073467{col 45}{space 1}   -0.17{col 54}{space 3}0.863{col 62}{space 4}-.1566556{col 75}{space 3} .1313595
{txt}{space 20} {c |}
{space 6}1.postsub3af10 {c |}{col 22}{res}{space 2} .0464726{col 34}{space 2} .0482641{col 45}{space 1}    0.96{col 54}{space 3}0.336{col 62}{space 4} -.048133{col 75}{space 3} .1410783
{txt}{space 20} {c |}
postsub3af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} -.056745{col 34}{space 2} .0866273{col 45}{space 1}   -0.66{col 54}{space 3}0.512{col 62}{space 4} -.226549{col 75}{space 3}  .113059
{txt}{space 20} {c |}
{space 16}mage {c |}{col 22}{res}{space 2} -.002898{col 34}{space 2} .0003153{col 45}{space 1}   -9.19{col 54}{space 3}0.000{col 62}{space 4}-.0035162{col 75}{space 3}-.0022799
{txt}{space 15}mage2 {c |}{col 22}{res}{space 2} .0000212{col 34}{space 2} 3.47e-06{col 45}{space 1}    6.11{col 54}{space 3}0.000{col 62}{space 4} .0000144{col 75}{space 3}  .000028
{txt}{space 15}_cons {c |}{col 22}{res}{space 2} .0424736{col 34}{space 2} .0053218{col 45}{space 1}    7.98{col 54}{space 3}0.000{col 62}{space 4}  .032042{col 75}{space 3} .0529052
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store nonsubu
{txt}
{com}.         
.                 ***Program, preshift and postshift effects
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1af10])*(1+exp(_b[1.presub2af10]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*exp(_b[1.sub2af10])*exp(_b[1.sub3af10])*exp(_b[1.postsub1af10])*(1+exp(_b[1.postsub2af10]))-2)), post;

     {txt}program: {res}1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1af10])*(1+exp(_b[1.presub2af10]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*exp(_b[1.sub2af10])*exp(_b[1.sub3af10])*exp(_b[1.postsub1af10])*(1+exp(_b[1.postsub2af10]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2}-.0062302{col 26}{space 2} .0548128{col 37}{space 1}   -0.11{col 46}{space 3}0.910{col 54}{space 4}-.1136614{col 67}{space 3}  .101201
{txt}{space 4}preshift {c |}{col 14}{res}{space 2} .0054449{col 26}{space 2}  .043668{col 37}{space 1}    0.12{col 46}{space 3}0.901{col 54}{space 4}-.0801429{col 67}{space 3} .0910327
{txt}{space 3}postshift {c |}{col 14}{res}{space 2}-.0809112{col 26}{space 2} .0621826{col 37}{space 1}   -1.30{col 46}{space 3}0.193{col 54}{space 4}-.2027869{col 67}{space 3} .0409645
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect
.                 nlcom           _b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} -.056541{col 26}{space 2} .1099545{col 37}{space 1}   -0.51{col 46}{space 3}0.607{col 54}{space 4}-.2720478{col 67}{space 3} .1589658
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***PRICES, SUBSIDIZED
. 
. reghdfe dlogprice i.presub3af10##ib1.treataf i.presub2af10##ib1.treataf i.presub1af10##ib1.treataf i.sub1af10##ib1.treataf i.sub2af10##ib1.treataf i.sub3af10##ib1.treataf i.postsub1af10##ib1.treataf i.postsub2af10##ib1.treataf i.postsub3af10##ib1.treataf  mage mage2 if samples, absorb(id2 cmt) cluster(id)
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 2 HDFE groups{col 51}F({res}  20{txt},{res}  11691{txt}){col 67}= {res}      1.82
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0139
{txt}{col 51}R-squared{col 67}= {res}    0.4100
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0262
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.0695

{txt}{ralign 86:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}           dlogprice{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}1.presub3af10 {c |}{col 22}{res}{space 2} .0123979{col 34}{space 2} .0071112{col 45}{space 1}    1.74{col 54}{space 3}0.081{col 62}{space 4}-.0015412{col 75}{space 3}  .026337
{txt}{space 11}0.treataf {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 1}presub3af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0134084{col 34}{space 2} .0085273{col 45}{space 1}   -1.57{col 54}{space 3}0.116{col 62}{space 4}-.0301233{col 75}{space 3} .0033065
{txt}{space 20} {c |}
{space 7}1.presub2af10 {c |}{col 22}{res}{space 2} .0071051{col 34}{space 2} .0072009{col 45}{space 1}    0.99{col 54}{space 3}0.324{col 62}{space 4}-.0070098{col 75}{space 3} .0212199
{txt}{space 20} {c |}
{space 1}presub2af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0040782{col 34}{space 2} .0081713{col 45}{space 1}   -0.50{col 54}{space 3}0.618{col 62}{space 4}-.0200953{col 75}{space 3}  .011939
{txt}{space 20} {c |}
{space 7}1.presub1af10 {c |}{col 22}{res}{space 2} .0005463{col 34}{space 2} .0063934{col 45}{space 1}    0.09{col 54}{space 3}0.932{col 62}{space 4}-.0119859{col 75}{space 3} .0130784
{txt}{space 20} {c |}
{space 1}presub1af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0000327{col 34}{space 2} .0074877{col 45}{space 1}   -0.00{col 54}{space 3}0.997{col 62}{space 4}-.0147099{col 75}{space 3} .0146445
{txt}{space 20} {c |}
{space 10}1.sub1af10 {c |}{col 22}{res}{space 2}-.0121531{col 34}{space 2} .0058702{col 45}{space 1}   -2.07{col 54}{space 3}0.038{col 62}{space 4}-.0236596{col 75}{space 3}-.0006465
{txt}{space 20} {c |}
{space 4}sub1af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0078498{col 34}{space 2} .0070589{col 45}{space 1}    1.11{col 54}{space 3}0.266{col 62}{space 4}-.0059869{col 75}{space 3} .0216865
{txt}{space 20} {c |}
{space 10}1.sub2af10 {c |}{col 22}{res}{space 2} .0049713{col 34}{space 2} .0070441{col 45}{space 1}    0.71{col 54}{space 3}0.480{col 62}{space 4}-.0088364{col 75}{space 3} .0187789
{txt}{space 20} {c |}
{space 4}sub2af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0047322{col 34}{space 2} .0082353{col 45}{space 1}    0.57{col 54}{space 3}0.566{col 62}{space 4}-.0114103{col 75}{space 3} .0208747
{txt}{space 20} {c |}
{space 10}1.sub3af10 {c |}{col 22}{res}{space 2}-.0123699{col 34}{space 2} .0059621{col 45}{space 1}   -2.07{col 54}{space 3}0.038{col 62}{space 4}-.0240566{col 75}{space 3}-.0006832
{txt}{space 20} {c |}
{space 4}sub3af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0029269{col 34}{space 2} .0071979{col 45}{space 1}    0.41{col 54}{space 3}0.684{col 62}{space 4}-.0111821{col 75}{space 3} .0170359
{txt}{space 20} {c |}
{space 6}1.postsub1af10 {c |}{col 22}{res}{space 2}  .008069{col 34}{space 2} .0064213{col 45}{space 1}    1.26{col 54}{space 3}0.209{col 62}{space 4}-.0045177{col 75}{space 3} .0206558
{txt}{space 20} {c |}
postsub1af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0093208{col 34}{space 2} .0078426{col 45}{space 1}   -1.19{col 54}{space 3}0.235{col 62}{space 4}-.0246936{col 75}{space 3} .0060519
{txt}{space 20} {c |}
{space 6}1.postsub2af10 {c |}{col 22}{res}{space 2} .0017167{col 34}{space 2} .0055818{col 45}{space 1}    0.31{col 54}{space 3}0.758{col 62}{space 4}-.0092245{col 75}{space 3}  .012658
{txt}{space 20} {c |}
postsub2af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0016323{col 34}{space 2} .0068635{col 45}{space 1}   -0.24{col 54}{space 3}0.812{col 62}{space 4}-.0150859{col 75}{space 3} .0118213
{txt}{space 20} {c |}
{space 6}1.postsub3af10 {c |}{col 22}{res}{space 2} .0023096{col 34}{space 2} .0065826{col 45}{space 1}    0.35{col 54}{space 3}0.726{col 62}{space 4}-.0105934{col 75}{space 3} .0152126
{txt}{space 20} {c |}
postsub3af10#treataf {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0093552{col 34}{space 2} .0077678{col 45}{space 1}    1.20{col 54}{space 3}0.228{col 62}{space 4}-.0058709{col 75}{space 3} .0245813
{txt}{space 20} {c |}
{space 16}mage {c |}{col 22}{res}{space 2}-6.80e-06{col 34}{space 2} .0000298{col 45}{space 1}   -0.23{col 54}{space 3}0.820{col 62}{space 4}-.0000652{col 75}{space 3} .0000516
{txt}{space 15}mage2 {c |}{col 22}{res}{space 2} 2.47e-07{col 34}{space 2} 3.09e-07{col 45}{space 1}    0.80{col 54}{space 3}0.423{col 62}{space 4}-3.58e-07{col 75}{space 3} 8.53e-07
{txt}{space 15}_cons {c |}{col 22}{res}{space 2}-.0022931{col 34}{space 2} .0005238{col 45}{space 1}   -4.38{col 54}{space 3}0.000{col 62}{space 4}-.0033198{col 75}{space 3}-.0012664
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subp
{txt}
{com}. 
.                 nlcom 1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)

       {txt}_nl_1: {res}1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} -.005284{col 26}{space 2} .0093924{col 37}{space 1}   -0.56{col 46}{space 3}0.574{col 54}{space 4}-.0236928{col 67}{space 3} .0131249
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.                 
.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++          
. ***PRICES, NON-SUBSIDIZED       
.         
. reghdfe dlogprice i.presub3af10##i.treataf i.presub2af10##i.treataf i.presub1af10##i.treataf i.sub1af10##i.treataf i.sub2af10##i.treataf i.sub3af10##i.treataf i.postsub1af10##i.treataf i.postsub2af10##i.treataf i.postsub3af10##i.treataf  mage mage2 if samples, absorb(id2 cmt) cluster(id)
{res}{txt}note: {res}1bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 13 iterations)
{res}{txt}note: 1.treataf omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,385
{txt}Absorbing 2 HDFE groups{col 51}F({res}  20{txt},{res}  11691{txt}){col 67}= {res}      1.82
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0139
{txt}{col 51}R-squared{col 67}= {res}    0.4100
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0262
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.0695

{txt}{ralign 86:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}           dlogprice{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}1.presub3af10 {c |}{col 22}{res}{space 2}-.0010105{col 34}{space 2} .0047057{col 45}{space 1}   -0.21{col 54}{space 3}0.830{col 62}{space 4}-.0102345{col 75}{space 3} .0082135
{txt}{space 11}1.treataf {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 1}presub3af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0134084{col 34}{space 2} .0085273{col 45}{space 1}    1.57{col 54}{space 3}0.116{col 62}{space 4}-.0033065{col 75}{space 3} .0301233
{txt}{space 20} {c |}
{space 7}1.presub2af10 {c |}{col 22}{res}{space 2} .0030269{col 34}{space 2} .0038629{col 45}{space 1}    0.78{col 54}{space 3}0.433{col 62}{space 4}-.0045449{col 75}{space 3} .0105987
{txt}{space 20} {c |}
{space 1}presub2af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0040782{col 34}{space 2} .0081713{col 45}{space 1}    0.50{col 54}{space 3}0.618{col 62}{space 4} -.011939{col 75}{space 3} .0200953
{txt}{space 20} {c |}
{space 7}1.presub1af10 {c |}{col 22}{res}{space 2} .0005136{col 34}{space 2} .0038975{col 45}{space 1}    0.13{col 54}{space 3}0.895{col 62}{space 4}-.0071262{col 75}{space 3} .0081534
{txt}{space 20} {c |}
{space 1}presub1af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0000327{col 34}{space 2} .0074877{col 45}{space 1}    0.00{col 54}{space 3}0.997{col 62}{space 4}-.0146445{col 75}{space 3} .0147099
{txt}{space 20} {c |}
{space 10}1.sub1af10 {c |}{col 22}{res}{space 2}-.0043033{col 34}{space 2} .0039205{col 45}{space 1}   -1.10{col 54}{space 3}0.272{col 62}{space 4}-.0119881{col 75}{space 3} .0033815
{txt}{space 20} {c |}
{space 4}sub1af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.0078498{col 34}{space 2} .0070589{col 45}{space 1}   -1.11{col 54}{space 3}0.266{col 62}{space 4}-.0216865{col 75}{space 3} .0059869
{txt}{space 20} {c |}
{space 10}1.sub2af10 {c |}{col 22}{res}{space 2} .0097034{col 34}{space 2} .0042662{col 45}{space 1}    2.27{col 54}{space 3}0.023{col 62}{space 4}  .001341{col 75}{space 3} .0180659
{txt}{space 20} {c |}
{space 4}sub2af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.0047322{col 34}{space 2} .0082353{col 45}{space 1}   -0.57{col 54}{space 3}0.566{col 62}{space 4}-.0208747{col 75}{space 3} .0114103
{txt}{space 20} {c |}
{space 10}1.sub3af10 {c |}{col 22}{res}{space 2} -.009443{col 34}{space 2} .0040327{col 45}{space 1}   -2.34{col 54}{space 3}0.019{col 62}{space 4}-.0173479{col 75}{space 3}-.0015382
{txt}{space 20} {c |}
{space 4}sub3af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.0029269{col 34}{space 2} .0071979{col 45}{space 1}   -0.41{col 54}{space 3}0.684{col 62}{space 4}-.0170359{col 75}{space 3} .0111821
{txt}{space 20} {c |}
{space 6}1.postsub1af10 {c |}{col 22}{res}{space 2}-.0012518{col 34}{space 2} .0045026{col 45}{space 1}   -0.28{col 54}{space 3}0.781{col 62}{space 4}-.0100776{col 75}{space 3}  .007574
{txt}{space 20} {c |}
postsub1af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0093208{col 34}{space 2} .0078426{col 45}{space 1}    1.19{col 54}{space 3}0.235{col 62}{space 4}-.0060519{col 75}{space 3} .0246936
{txt}{space 20} {c |}
{space 6}1.postsub2af10 {c |}{col 22}{res}{space 2} .0000845{col 34}{space 2} .0039939{col 45}{space 1}    0.02{col 54}{space 3}0.983{col 62}{space 4}-.0077442{col 75}{space 3} .0079132
{txt}{space 20} {c |}
postsub2af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0016323{col 34}{space 2} .0068635{col 45}{space 1}    0.24{col 54}{space 3}0.812{col 62}{space 4}-.0118213{col 75}{space 3} .0150859
{txt}{space 20} {c |}
{space 6}1.postsub3af10 {c |}{col 22}{res}{space 2} .0116648{col 34}{space 2} .0041239{col 45}{space 1}    2.83{col 54}{space 3}0.005{col 62}{space 4} .0035813{col 75}{space 3} .0197483
{txt}{space 20} {c |}
postsub3af10#treataf {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.0093552{col 34}{space 2} .0077678{col 45}{space 1}   -1.20{col 54}{space 3}0.228{col 62}{space 4}-.0245813{col 75}{space 3} .0058709
{txt}{space 20} {c |}
{space 16}mage {c |}{col 22}{res}{space 2}-6.80e-06{col 34}{space 2} .0000298{col 45}{space 1}   -0.23{col 54}{space 3}0.820{col 62}{space 4}-.0000652{col 75}{space 3} .0000516
{txt}{space 15}mage2 {c |}{col 22}{res}{space 2} 2.47e-07{col 34}{space 2} 3.09e-07{col 45}{space 1}    0.80{col 54}{space 3}0.423{col 62}{space 4}-3.58e-07{col 75}{space 3} 8.53e-07
{txt}{space 15}_cons {c |}{col 22}{res}{space 2}-.0022931{col 34}{space 2} .0005238{col 45}{space 1}   -4.38{col 54}{space 3}0.000{col 62}{space 4}-.0033198{col 75}{space 3}-.0012664
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      192{col 27}{space 1}        0{col 39}{result}{space 1}      192{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store nonsubp
{txt}
{com}. 
.                 nlcom 1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)

       {txt}_nl_1: {res}1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0025719{col 26}{space 2} .0059066{col 37}{space 1}    0.44{col 46}{space 3}0.663{col 54}{space 4}-.0090048{col 67}{space 3} .0141487
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***RESPONSE BY HEIGHT OF REFRIGERATORS/FREEZERS
. 
. egen cmth=group(country month treataf tall)
{txt}
{com}. 
. ***ABOVE 90 CM, UNITS
. reghdfe dlogunits i.presub3af10##ib1.treataf##ib1.tall i.presub2af10##ib1.treataf##ib1.tall i.presub1af10##ib1.treataf##ib1.tall i.sub1af10##ib1.treataf##ib1.tall i.sub2af10##ib1.treataf##ib1.tall i.sub3af10##ib1.treataf##ib1.tall i.postsub1af10##ib1.treataf##ib1.tall i.postsub2af10##ib1.treataf##ib1.tall i.postsub3af10##ib1.treataf##ib1.tall  mage mage2 , absorb(id2 cmth) cluster(id)
{res}{txt}(dropped 212755 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treataf#0bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{txt}note: 0.tall omitted because of collinearity
{txt}note: 0.treataf#0.tall omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,381
{txt}Absorbing 2 HDFE groups{col 51}F({res}  38{txt},{res}  11691{txt}){col 67}= {res}      6.83
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4457
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0844
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6954

{txt}{ralign 91:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 27}{c |}{col 39}    Robust
{col 1}                dlogunits{col 27}{c |} Coefficient{col 39}  std. err.{col 51}      t{col 59}   P>|t|{col 67}     [95% con{col 80}f. interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}1.presub3af10 {c |}{col 27}{res}{space 2} .0580801{col 39}{space 2} .0985728{col 50}{space 1}    0.59{col 59}{space 3}0.556{col 67}{space 4}-.1351391{col 80}{space 3} .2512993
{txt}{space 16}0.treataf {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 6}presub3af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0283598{col 39}{space 2} .1153172{col 50}{space 1}   -0.25{col 59}{space 3}0.806{col 67}{space 4}-.2544008{col 80}{space 3} .1976811
{txt}{space 25} {c |}
{space 19}0.tall {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 9}presub3af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0851386{col 39}{space 2} .2297552{col 50}{space 1}    0.37{col 59}{space 3}0.711{col 67}{space 4}-.3652199{col 80}{space 3} .5354971
{txt}{space 25} {c |}
{space 13}treataf#tall {c |}
{space 21}0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 1}presub3af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}-.0770227{col 39}{space 2} .2529683{col 50}{space 1}   -0.30{col 59}{space 3}0.761{col 67}{space 4}-.5728828{col 80}{space 3} .4188374
{txt}{space 25} {c |}
{space 12}1.presub2af10 {c |}{col 27}{res}{space 2} -.079277{col 39}{space 2} .0897792{col 50}{space 1}   -0.88{col 59}{space 3}0.377{col 67}{space 4}-.2552591{col 80}{space 3} .0967052
{txt}{space 25} {c |}
{space 6}presub2af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0228257{col 39}{space 2} .1013607{col 50}{space 1}    0.23{col 59}{space 3}0.822{col 67}{space 4}-.1758582{col 80}{space 3} .2215097
{txt}{space 25} {c |}
{space 9}presub2af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.1741979{col 39}{space 2} .1795978{col 50}{space 1}   -0.97{col 59}{space 3}0.332{col 67}{space 4}-.5262396{col 80}{space 3} .1778438
{txt}{space 25} {c |}
{space 1}presub2af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2} .0313799{col 39}{space 2} .2009696{col 50}{space 1}    0.16{col 59}{space 3}0.876{col 67}{space 4}-.3625541{col 80}{space 3}  .425314
{txt}{space 25} {c |}
{space 12}1.presub1af10 {c |}{col 27}{res}{space 2}-.1776406{col 39}{space 2}   .09736{col 50}{space 1}   -1.82{col 59}{space 3}0.068{col 67}{space 4}-.3684825{col 80}{space 3} .0132014
{txt}{space 25} {c |}
{space 6}presub1af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1965798{col 39}{space 2} .1097431{col 50}{space 1}    1.79{col 59}{space 3}0.073{col 67}{space 4} -.018535{col 80}{space 3} .4116947
{txt}{space 25} {c |}
{space 9}presub1af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .2983128{col 39}{space 2} .1879887{col 50}{space 1}    1.59{col 59}{space 3}0.113{col 67}{space 4}-.0701765{col 80}{space 3} .6668021
{txt}{space 25} {c |}
{space 1}presub1af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}-.1760181{col 39}{space 2}  .212366{col 50}{space 1}   -0.83{col 59}{space 3}0.407{col 67}{space 4} -.592291{col 80}{space 3} .2402547
{txt}{space 25} {c |}
{space 15}1.sub1af10 {c |}{col 27}{res}{space 2} .5169721{col 39}{space 2}  .090865{col 50}{space 1}    5.69{col 59}{space 3}0.000{col 67}{space 4} .3388616{col 80}{space 3} .6950826
{txt}{space 25} {c |}
{space 9}sub1af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.5437713{col 39}{space 2} .1019188{col 50}{space 1}   -5.34{col 59}{space 3}0.000{col 67}{space 4}-.7435491{col 80}{space 3}-.3439935
{txt}{space 25} {c |}
{space 12}sub1af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0115004{col 39}{space 2} .1510021{col 50}{space 1}   -0.08{col 59}{space 3}0.939{col 67}{space 4}-.3074897{col 80}{space 3}  .284489
{txt}{space 25} {c |}
{space 4}sub1af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2} .0315176{col 39}{space 2}   .17589{col 50}{space 1}    0.18{col 59}{space 3}0.858{col 67}{space 4}-.3132562{col 80}{space 3} .3762913
{txt}{space 25} {c |}
{space 15}1.sub2af10 {c |}{col 27}{res}{space 2} .0995595{col 39}{space 2} .0857247{col 50}{space 1}    1.16{col 59}{space 3}0.246{col 67}{space 4}-.0684751{col 80}{space 3} .2675942
{txt}{space 25} {c |}
{space 9}sub2af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0475521{col 39}{space 2} .1043938{col 50}{space 1}   -0.46{col 59}{space 3}0.649{col 67}{space 4}-.2521813{col 80}{space 3} .1570771
{txt}{space 25} {c |}
{space 12}sub2af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0178012{col 39}{space 2} .1804298{col 50}{space 1}   -0.10{col 59}{space 3}0.921{col 67}{space 4}-.3714737{col 80}{space 3} .3358714
{txt}{space 25} {c |}
{space 4}sub2af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2} .1633826{col 39}{space 2} .2085355{col 50}{space 1}    0.78{col 59}{space 3}0.433{col 67}{space 4}-.2453817{col 80}{space 3}  .572147
{txt}{space 25} {c |}
{space 15}1.sub3af10 {c |}{col 27}{res}{space 2}-.0120923{col 39}{space 2} .0743103{col 50}{space 1}   -0.16{col 59}{space 3}0.871{col 67}{space 4}-.1577529{col 80}{space 3} .1335683
{txt}{space 25} {c |}
{space 9}sub3af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0219314{col 39}{space 2} .0890074{col 50}{space 1}    0.25{col 59}{space 3}0.805{col 67}{space 4} -.152538{col 80}{space 3} .1964008
{txt}{space 25} {c |}
{space 12}sub3af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.1875424{col 39}{space 2} .1495084{col 50}{space 1}   -1.25{col 59}{space 3}0.210{col 67}{space 4}-.4806038{col 80}{space 3}  .105519
{txt}{space 25} {c |}
{space 4}sub3af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2} .1094145{col 39}{space 2} .1774673{col 50}{space 1}    0.62{col 59}{space 3}0.538{col 67}{space 4}-.2384511{col 80}{space 3} .4572801
{txt}{space 25} {c |}
{space 11}1.postsub1af10 {c |}{col 27}{res}{space 2} -.224102{col 39}{space 2}  .075396{col 50}{space 1}   -2.97{col 59}{space 3}0.003{col 67}{space 4}-.3718908{col 80}{space 3}-.0763132
{txt}{space 25} {c |}
{space 5}postsub1af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .2153897{col 39}{space 2}  .094117{col 50}{space 1}    2.29{col 59}{space 3}0.022{col 67}{space 4} .0309046{col 80}{space 3} .3998747
{txt}{space 25} {c |}
{space 8}postsub1af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .2092966{col 39}{space 2} .1963486{col 50}{space 1}    1.07{col 59}{space 3}0.286{col 67}{space 4}-.1755794{col 80}{space 3} .5941726
{txt}{space 25} {c |}
postsub1af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}-.3228529{col 39}{space 2} .2265223{col 50}{space 1}   -1.43{col 59}{space 3}0.154{col 67}{space 4}-.7668743{col 80}{space 3} .1211685
{txt}{space 25} {c |}
{space 11}1.postsub2af10 {c |}{col 27}{res}{space 2}-.1659362{col 39}{space 2} .0649899{col 50}{space 1}   -2.55{col 59}{space 3}0.011{col 67}{space 4}-.2933272{col 80}{space 3}-.0385452
{txt}{space 25} {c |}
{space 5}postsub2af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0495168{col 39}{space 2} .0828948{col 50}{space 1}    0.60{col 59}{space 3}0.550{col 67}{space 4}-.1129709{col 80}{space 3} .2120046
{txt}{space 25} {c |}
{space 8}postsub2af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1273207{col 39}{space 2}  .158005{col 50}{space 1}    0.81{col 59}{space 3}0.420{col 67}{space 4}-.1823954{col 80}{space 3} .4370369
{txt}{space 25} {c |}
postsub2af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}-.1965601{col 39}{space 2}  .184286{col 50}{space 1}   -1.07{col 59}{space 3}0.286{col 67}{space 4}-.5577915{col 80}{space 3} .1646712
{txt}{space 25} {c |}
{space 11}1.postsub3af10 {c |}{col 27}{res}{space 2} .0134562{col 39}{space 2}  .079108{col 50}{space 1}    0.17{col 59}{space 3}0.865{col 67}{space 4}-.1416088{col 80}{space 3} .1685212
{txt}{space 25} {c |}
{space 5}postsub3af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}  .045611{col 39}{space 2} .0968265{col 50}{space 1}    0.47{col 59}{space 3}0.638{col 67}{space 4} -.144185{col 80}{space 3} .2354071
{txt}{space 25} {c |}
{space 8}postsub3af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.1595983{col 39}{space 2} .1897875{col 50}{space 1}   -0.84{col 59}{space 3}0.400{col 67}{space 4}-.5316135{col 80}{space 3} .2124169
{txt}{space 25} {c |}
postsub3af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2} .1106012{col 39}{space 2} .2199693{col 50}{space 1}    0.50{col 59}{space 3}0.615{col 67}{space 4}-.3205754{col 80}{space 3} .5417777
{txt}{space 25} {c |}
{space 21}mage {c |}{col 27}{res}{space 2}-.0029113{col 39}{space 2} .0003158{col 50}{space 1}   -9.22{col 59}{space 3}0.000{col 67}{space 4}-.0035303{col 80}{space 3}-.0022922
{txt}{space 20}mage2 {c |}{col 27}{res}{space 2} .0000213{col 39}{space 2} 3.48e-06{col 50}{space 1}    6.11{col 59}{space 3}0.000{col 67}{space 4} .0000144{col 80}{space 3} .0000281
{txt}{space 20}_cons {c |}{col 27}{res}{space 2} .0427626{col 39}{space 2} .0053237{col 50}{space 1}    8.03{col 59}{space 3}0.000{col 67}{space 4} .0323273{col 80}{space 3}  .053198
{txt}{hline 26}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        cmth{col 14}{c |}{space 1}      380{col 27}{space 1}        0{col 39}{result}{space 1}      380{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subtallu
{txt}
{com}. gen samplet=e(sample)
{txt}
{com}.                 
.                 ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1af10])*(1+exp(_b[1.presub2af10]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*exp(_b[1.sub2af10])*exp(_b[1.sub3af10])*exp(_b[1.postsub1af10])*(1+exp(_b[1.postsub2af10]))-2)), post;

     {txt}program: {res}1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1af10])*(1+exp(_b[1.presub2af10]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*exp(_b[1.sub2af10])*exp(_b[1.sub3af10])*exp(_b[1.postsub1af10])*(1+exp(_b[1.postsub2af10]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .3817774{col 26}{space 2} .1694607{col 37}{space 1}    2.25{col 46}{space 3}0.024{col 54}{space 4} .0496406{col 67}{space 3} .7139143
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.1946624{col 26}{space 2} .0739435{col 37}{space 1}   -2.63{col 46}{space 3}0.008{col 54}{space 4} -.339589{col 67}{space 3}-.0497358
{txt}{space 3}postshift {c |}{col 14}{res}{space 2}  .044867{col 26}{space 2} .1411693{col 37}{space 1}    0.32{col 46}{space 3}0.751{col 54}{space 4}-.2318198{col 67}{space 3} .3215537
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect (switching)
.                 nlcom           _b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .2819138{col 26}{space 2} .2843866{col 37}{space 1}    0.99{col 46}{space 3}0.322{col 54}{space 4}-.2754737{col 67}{space 3} .8393013
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***SMALLER OR EQUAL 90CM, UNITS
. 
. reghdfe dlogunits i.presub3af10##ib1.treataf##i.tall i.presub2af10##ib1.treataf##i.tall i.presub1af10##ib1.treataf##i.tall i.sub1af10##ib1.treataf##i.tall i.sub2af10##ib1.treataf##i.tall i.sub3af10##ib1.treataf##i.tall i.postsub1af10##ib1.treataf##i.tall i.postsub2af10##ib1.treataf##i.tall i.postsub3af10##ib1.treataf##i.tall  mage mage2 , absorb(id2 cmth) cluster(id)
{res}{txt}(dropped 212755 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treataf#1bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{txt}note: 1.tall omitted because of collinearity
{txt}note: 0.treataf#1.tall omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,381
{txt}Absorbing 2 HDFE groups{col 51}F({res}  38{txt},{res}  11691{txt}){col 67}= {res}      6.83
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4457
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0844
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.6954

{txt}{ralign 91:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 27}{c |}{col 39}    Robust
{col 1}                dlogunits{col 27}{c |} Coefficient{col 39}  std. err.{col 51}      t{col 59}   P>|t|{col 67}     [95% con{col 80}f. interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}1.presub3af10 {c |}{col 27}{res}{space 2} .1432187{col 39}{space 2} .2075352{col 50}{space 1}    0.69{col 59}{space 3}0.490{col 67}{space 4} -.263585{col 80}{space 3} .5500224
{txt}{space 16}0.treataf {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 6}presub3af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.1053825{col 39}{space 2}  .225155{col 50}{space 1}   -0.47{col 59}{space 3}0.640{col 67}{space 4}-.5467239{col 80}{space 3} .3359588
{txt}{space 25} {c |}
{space 19}1.tall {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 9}presub3af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.0851386{col 39}{space 2} .2297552{col 50}{space 1}   -0.37{col 59}{space 3}0.711{col 67}{space 4}-.5354971{col 80}{space 3} .3652199
{txt}{space 25} {c |}
{space 13}treataf#tall {c |}
{space 21}0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 1}presub3af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2} .0770227{col 39}{space 2} .2529683{col 50}{space 1}    0.30{col 59}{space 3}0.761{col 67}{space 4}-.4188374{col 80}{space 3} .5728828
{txt}{space 25} {c |}
{space 12}1.presub2af10 {c |}{col 27}{res}{space 2}-.2534749{col 39}{space 2} .1555478{col 50}{space 1}   -1.63{col 59}{space 3}0.103{col 67}{space 4}-.5583745{col 80}{space 3} .0514247
{txt}{space 25} {c |}
{space 6}presub2af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0542057{col 39}{space 2} .1735357{col 50}{space 1}    0.31{col 59}{space 3}0.755{col 67}{space 4}-.2859532{col 80}{space 3} .3943645
{txt}{space 25} {c |}
{space 9}presub2af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .1741979{col 39}{space 2} .1795978{col 50}{space 1}    0.97{col 59}{space 3}0.332{col 67}{space 4}-.1778438{col 80}{space 3} .5262396
{txt}{space 25} {c |}
{space 1}presub2af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}-.0313799{col 39}{space 2} .2009696{col 50}{space 1}   -0.16{col 59}{space 3}0.876{col 67}{space 4} -.425314{col 80}{space 3} .3625541
{txt}{space 25} {c |}
{space 12}1.presub1af10 {c |}{col 27}{res}{space 2} .1206722{col 39}{space 2} .1608135{col 50}{space 1}    0.75{col 59}{space 3}0.453{col 67}{space 4} -.194549{col 80}{space 3} .4358934
{txt}{space 25} {c |}
{space 6}presub1af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0205617{col 39}{space 2} .1818134{col 50}{space 1}    0.11{col 59}{space 3}0.910{col 67}{space 4}-.3358229{col 80}{space 3} .3769463
{txt}{space 25} {c |}
{space 9}presub1af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.2983128{col 39}{space 2} .1879887{col 50}{space 1}   -1.59{col 59}{space 3}0.113{col 67}{space 4}-.6668021{col 80}{space 3} .0701765
{txt}{space 25} {c |}
{space 1}presub1af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2} .1760181{col 39}{space 2}  .212366{col 50}{space 1}    0.83{col 59}{space 3}0.407{col 67}{space 4}-.2402547{col 80}{space 3}  .592291
{txt}{space 25} {c |}
{space 15}1.sub1af10 {c |}{col 27}{res}{space 2} .5054717{col 39}{space 2} .1206027{col 50}{space 1}    4.19{col 59}{space 3}0.000{col 67}{space 4} .2690703{col 80}{space 3} .7418732
{txt}{space 25} {c |}
{space 9}sub1af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.5122537{col 39}{space 2} .1433502{col 50}{space 1}   -3.57{col 59}{space 3}0.000{col 67}{space 4} -.793244{col 80}{space 3}-.2312635
{txt}{space 25} {c |}
{space 12}sub1af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .0115004{col 39}{space 2} .1510021{col 50}{space 1}    0.08{col 59}{space 3}0.939{col 67}{space 4} -.284489{col 80}{space 3} .3074897
{txt}{space 25} {c |}
{space 4}sub1af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}-.0315176{col 39}{space 2}   .17589{col 50}{space 1}   -0.18{col 59}{space 3}0.858{col 67}{space 4}-.3762913{col 80}{space 3} .3132562
{txt}{space 25} {c |}
{space 15}1.sub2af10 {c |}{col 27}{res}{space 2} .0817584{col 39}{space 2} .1587653{col 50}{space 1}    0.51{col 59}{space 3}0.607{col 67}{space 4}-.2294482{col 80}{space 3} .3929649
{txt}{space 25} {c |}
{space 9}sub2af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1158305{col 39}{space 2} .1805245{col 50}{space 1}    0.64{col 59}{space 3}0.521{col 67}{space 4}-.2380276{col 80}{space 3} .4696887
{txt}{space 25} {c |}
{space 12}sub2af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .0178012{col 39}{space 2} .1804298{col 50}{space 1}    0.10{col 59}{space 3}0.921{col 67}{space 4}-.3358714{col 80}{space 3} .3714737
{txt}{space 25} {c |}
{space 4}sub2af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}-.1633826{col 39}{space 2} .2085355{col 50}{space 1}   -0.78{col 59}{space 3}0.433{col 67}{space 4} -.572147{col 80}{space 3} .2453817
{txt}{space 25} {c |}
{space 15}1.sub3af10 {c |}{col 27}{res}{space 2}-.1996347{col 39}{space 2} .1297331{col 50}{space 1}   -1.54{col 59}{space 3}0.124{col 67}{space 4}-.4539334{col 80}{space 3} .0546639
{txt}{space 25} {c |}
{space 9}sub3af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1313459{col 39}{space 2} .1535328{col 50}{space 1}    0.86{col 59}{space 3}0.392{col 67}{space 4}-.1696041{col 80}{space 3} .4322959
{txt}{space 25} {c |}
{space 12}sub3af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .1875424{col 39}{space 2} .1495084{col 50}{space 1}    1.25{col 59}{space 3}0.210{col 67}{space 4} -.105519{col 80}{space 3} .4806038
{txt}{space 25} {c |}
{space 4}sub3af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}-.1094145{col 39}{space 2} .1774673{col 50}{space 1}   -0.62{col 59}{space 3}0.538{col 67}{space 4}-.4572801{col 80}{space 3} .2384511
{txt}{space 25} {c |}
{space 11}1.postsub1af10 {c |}{col 27}{res}{space 2}-.0148054{col 39}{space 2} .1812963{col 50}{space 1}   -0.08{col 59}{space 3}0.935{col 67}{space 4}-.3701765{col 80}{space 3} .3405657
{txt}{space 25} {c |}
{space 5}postsub1af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.1074632{col 39}{space 2} .2060454{col 50}{space 1}   -0.52{col 59}{space 3}0.602{col 67}{space 4}-.5113466{col 80}{space 3} .2964201
{txt}{space 25} {c |}
{space 8}postsub1af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.2092966{col 39}{space 2} .1963486{col 50}{space 1}   -1.07{col 59}{space 3}0.286{col 67}{space 4}-.5941726{col 80}{space 3} .1755794
{txt}{space 25} {c |}
postsub1af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2} .3228529{col 39}{space 2} .2265223{col 50}{space 1}    1.43{col 59}{space 3}0.154{col 67}{space 4}-.1211685{col 80}{space 3} .7668743
{txt}{space 25} {c |}
{space 11}1.postsub2af10 {c |}{col 27}{res}{space 2}-.0386155{col 39}{space 2} .1440193{col 50}{space 1}   -0.27{col 59}{space 3}0.789{col 67}{space 4}-.3209173{col 80}{space 3} .2436863
{txt}{space 25} {c |}
{space 5}postsub2af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.1470433{col 39}{space 2} .1645896{col 50}{space 1}   -0.89{col 59}{space 3}0.372{col 67}{space 4}-.4696663{col 80}{space 3} .1755798
{txt}{space 25} {c |}
{space 8}postsub2af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.1273207{col 39}{space 2}  .158005{col 50}{space 1}   -0.81{col 59}{space 3}0.420{col 67}{space 4}-.4370369{col 80}{space 3} .1823954
{txt}{space 25} {c |}
postsub2af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2} .1965601{col 39}{space 2}  .184286{col 50}{space 1}    1.07{col 59}{space 3}0.286{col 67}{space 4}-.1646712{col 80}{space 3} .5577915
{txt}{space 25} {c |}
{space 11}1.postsub3af10 {c |}{col 27}{res}{space 2}-.1461421{col 39}{space 2} .1725148{col 50}{space 1}   -0.85{col 59}{space 3}0.397{col 67}{space 4}-.4842999{col 80}{space 3} .1920157
{txt}{space 25} {c |}
{space 5}postsub3af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1562122{col 39}{space 2} .1975114{col 50}{space 1}    0.79{col 59}{space 3}0.429{col 67}{space 4}-.2309431{col 80}{space 3} .5433675
{txt}{space 25} {c |}
{space 8}postsub3af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .1595983{col 39}{space 2} .1897875{col 50}{space 1}    0.84{col 59}{space 3}0.400{col 67}{space 4}-.2124169{col 80}{space 3} .5316135
{txt}{space 25} {c |}
postsub3af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}-.1106012{col 39}{space 2} .2199693{col 50}{space 1}   -0.50{col 59}{space 3}0.615{col 67}{space 4}-.5417777{col 80}{space 3} .3205754
{txt}{space 25} {c |}
{space 21}mage {c |}{col 27}{res}{space 2}-.0029113{col 39}{space 2} .0003158{col 50}{space 1}   -9.22{col 59}{space 3}0.000{col 67}{space 4}-.0035303{col 80}{space 3}-.0022922
{txt}{space 20}mage2 {c |}{col 27}{res}{space 2} .0000213{col 39}{space 2} 3.48e-06{col 50}{space 1}    6.11{col 59}{space 3}0.000{col 67}{space 4} .0000144{col 80}{space 3} .0000281
{txt}{space 20}_cons {c |}{col 27}{res}{space 2} .0427626{col 39}{space 2} .0053237{col 50}{space 1}    8.03{col 59}{space 3}0.000{col 67}{space 4} .0323273{col 80}{space 3}  .053198
{txt}{hline 26}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        cmth{col 14}{c |}{space 1}      380{col 27}{space 1}        0{col 39}{result}{space 1}      380{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subshortu
{txt}
{com}.                 ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1af10])*(1+exp(_b[1.presub2af10]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*exp(_b[1.sub2af10])*exp(_b[1.sub3af10])*exp(_b[1.postsub1af10])*(1+exp(_b[1.postsub2af10]))-2)), post;

     {txt}program: {res}1/3*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*(1+exp(_b[1.sub2af10])+exp(_b[1.sub2af10])*exp(_b[1.sub3af10]))-3)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1af10])*(1+exp(_b[1.presub2af10]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2af10])*exp(_b[1.presub1af10])*exp(_b[1.sub1af10])*exp(_b[1.sub2af10])*exp(_b[1.sub3af10])*exp(_b[1.postsub1af10])*(1+exp(_b[1.postsub2af10]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2}  .439023{col 26}{space 2} .2765663{col 37}{space 1}    1.59{col 46}{space 3}0.112{col 54}{space 4} -.103037{col 67}{space 3} .9810831
{txt}{space 4}preshift {c |}{col 14}{res}{space 2} .0019464{col 26}{space 2}  .163406{col 37}{space 1}    0.01{col 46}{space 3}0.990{col 54}{space 4}-.3183234{col 67}{space 3} .3222162
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .2471562{col 26}{space 2} .3166078{col 37}{space 1}    0.78{col 46}{space 3}0.435{col 54}{space 4}-.3733837{col 67}{space 3}  .867696
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect (switching)
.                 nlcom           _b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/3)*_b[preshift]+ (2/3)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .6050914{col 26}{space 2} .5390026{col 37}{space 1}    1.12{col 46}{space 3}0.262{col 54}{space 4}-.4513343{col 67}{space 3} 1.661517
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***ABOVE 90 CM, PRICES
. 
. reghdfe dlogprice i.presub3af10##ib1.treataf##ib1.tall i.presub2af10##ib1.treataf##ib1.tall i.presub1af10##ib1.treataf##ib1.tall i.sub1af10##ib1.treataf##ib1.tall i.sub2af10##ib1.treataf##ib1.tall i.sub3af10##ib1.treataf##ib1.tall i.postsub1af10##ib1.treataf##ib1.tall i.postsub2af10##ib1.treataf##ib1.tall i.postsub3af10##ib1.treataf##ib1.tall  mage mage2 if samplet , absorb(id2 cmth) cluster(id)
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treataf#0bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{txt}note: 0.tall omitted because of collinearity
{txt}note: 0.treataf#0.tall omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,381
{txt}Absorbing 2 HDFE groups{col 51}F({res}  38{txt},{res}  11691{txt}){col 67}= {res}      1.68
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0057
{txt}{col 51}R-squared{col 67}= {res}    0.4104
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0262
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.0695

{txt}{ralign 91:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 27}{c |}{col 39}    Robust
{col 1}                dlogprice{col 27}{c |} Coefficient{col 39}  std. err.{col 51}      t{col 59}   P>|t|{col 67}     [95% con{col 80}f. interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}1.presub3af10 {c |}{col 27}{res}{space 2} .0096511{col 39}{space 2} .0080857{col 50}{space 1}    1.19{col 59}{space 3}0.233{col 67}{space 4}-.0061983{col 80}{space 3} .0255005
{txt}{space 16}0.treataf {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 6}presub3af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0093706{col 39}{space 2} .0098359{col 50}{space 1}   -0.95{col 59}{space 3}0.341{col 67}{space 4}-.0286505{col 80}{space 3} .0099093
{txt}{space 25} {c |}
{space 19}0.tall {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 9}presub3af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0152013{col 39}{space 2} .0161834{col 50}{space 1}    0.94{col 59}{space 3}0.348{col 67}{space 4} -.016521{col 80}{space 3} .0469235
{txt}{space 25} {c |}
{space 13}treataf#tall {c |}
{space 21}0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 1}presub3af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}-.0195269{col 39}{space 2} .0192012{col 50}{space 1}   -1.02{col 59}{space 3}0.309{col 67}{space 4}-.0571644{col 80}{space 3} .0181107
{txt}{space 25} {c |}
{space 12}1.presub2af10 {c |}{col 27}{res}{space 2} .0127285{col 39}{space 2} .0074864{col 50}{space 1}    1.70{col 59}{space 3}0.089{col 67}{space 4} -.001946{col 80}{space 3}  .027403
{txt}{space 25} {c |}
{space 6}presub2af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0106387{col 39}{space 2} .0086259{col 50}{space 1}   -1.23{col 59}{space 3}0.217{col 67}{space 4} -.027547{col 80}{space 3} .0062696
{txt}{space 25} {c |}
{space 9}presub2af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0328666{col 39}{space 2}  .022627{col 50}{space 1}   -1.45{col 59}{space 3}0.146{col 67}{space 4}-.0772194{col 80}{space 3} .0114861
{txt}{space 25} {c |}
{space 1}presub2af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2} .0364739{col 39}{space 2} .0245326{col 50}{space 1}    1.49{col 59}{space 3}0.137{col 67}{space 4}-.0116142{col 80}{space 3} .0845619
{txt}{space 25} {c |}
{space 12}1.presub1af10 {c |}{col 27}{res}{space 2} .0020263{col 39}{space 2} .0071948{col 50}{space 1}    0.28{col 59}{space 3}0.778{col 67}{space 4}-.0120766{col 80}{space 3} .0161293
{txt}{space 25} {c |}
{space 6}presub1af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0000255{col 39}{space 2} .0085987{col 50}{space 1}    0.00{col 59}{space 3}0.998{col 67}{space 4}-.0168295{col 80}{space 3} .0168805
{txt}{space 25} {c |}
{space 9}presub1af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0088559{col 39}{space 2} .0154237{col 50}{space 1}   -0.57{col 59}{space 3}0.566{col 67}{space 4}-.0390889{col 80}{space 3} .0213771
{txt}{space 25} {c |}
{space 1}presub1af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2} .0027585{col 39}{space 2} .0174618{col 50}{space 1}    0.16{col 59}{space 3}0.874{col 67}{space 4}-.0314694{col 80}{space 3} .0369865
{txt}{space 25} {c |}
{space 15}1.sub1af10 {c |}{col 27}{res}{space 2}-.0080113{col 39}{space 2} .0066743{col 50}{space 1}   -1.20{col 59}{space 3}0.230{col 67}{space 4} -.021094{col 80}{space 3} .0050714
{txt}{space 25} {c |}
{space 9}sub1af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0051056{col 39}{space 2}  .008179{col 50}{space 1}    0.62{col 59}{space 3}0.532{col 67}{space 4}-.0109266{col 80}{space 3} .0211378
{txt}{space 25} {c |}
{space 12}sub1af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0238861{col 39}{space 2} .0130005{col 50}{space 1}   -1.84{col 59}{space 3}0.066{col 67}{space 4}-.0493691{col 80}{space 3}  .001597
{txt}{space 25} {c |}
{space 4}sub1af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2} .0184306{col 39}{space 2} .0153831{col 50}{space 1}    1.20{col 59}{space 3}0.231{col 67}{space 4}-.0117228{col 80}{space 3} .0485839
{txt}{space 25} {c |}
{space 15}1.sub2af10 {c |}{col 27}{res}{space 2}-.0014819{col 39}{space 2} .0073438{col 50}{space 1}   -0.20{col 59}{space 3}0.840{col 67}{space 4}-.0158771{col 80}{space 3} .0129132
{txt}{space 25} {c |}
{space 9}sub2af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0099072{col 39}{space 2} .0088333{col 50}{space 1}    1.12{col 59}{space 3}0.262{col 67}{space 4}-.0074076{col 80}{space 3}  .027222
{txt}{space 25} {c |}
{space 12}sub2af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0367604{col 39}{space 2} .0209949{col 50}{space 1}    1.75{col 59}{space 3}0.080{col 67}{space 4}-.0043931{col 80}{space 3} .0779139
{txt}{space 25} {c |}
{space 4}sub2af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}-.0317432{col 39}{space 2} .0232161{col 50}{space 1}   -1.37{col 59}{space 3}0.172{col 67}{space 4}-.0772507{col 80}{space 3} .0137642
{txt}{space 25} {c |}
{space 15}1.sub3af10 {c |}{col 27}{res}{space 2} -.011706{col 39}{space 2} .0064953{col 50}{space 1}   -1.80{col 59}{space 3}0.072{col 67}{space 4}-.0244378{col 80}{space 3} .0010259
{txt}{space 25} {c |}
{space 9}sub3af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0064253{col 39}{space 2} .0080048{col 50}{space 1}    0.80{col 59}{space 3}0.422{col 67}{space 4}-.0092655{col 80}{space 3}  .022116
{txt}{space 25} {c |}
{space 12}sub3af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0051047{col 39}{space 2} .0166068{col 50}{space 1}   -0.31{col 59}{space 3}0.759{col 67}{space 4}-.0376567{col 80}{space 3} .0274474
{txt}{space 25} {c |}
{space 4}sub3af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}-.0116448{col 39}{space 2} .0189783{col 50}{space 1}   -0.61{col 59}{space 3}0.540{col 67}{space 4}-.0488455{col 80}{space 3} .0255559
{txt}{space 25} {c |}
{space 11}1.postsub1af10 {c |}{col 27}{res}{space 2} .0085194{col 39}{space 2}  .007051{col 50}{space 1}    1.21{col 59}{space 3}0.227{col 67}{space 4}-.0053016{col 80}{space 3} .0223405
{txt}{space 25} {c |}
{space 5}postsub1af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0127404{col 39}{space 2} .0086148{col 50}{space 1}   -1.48{col 59}{space 3}0.139{col 67}{space 4}-.0296268{col 80}{space 3}  .004146
{txt}{space 25} {c |}
{space 8}postsub1af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0058173{col 39}{space 2}  .016509{col 50}{space 1}   -0.35{col 59}{space 3}0.725{col 67}{space 4}-.0381776{col 80}{space 3}  .026543
{txt}{space 25} {c |}
postsub1af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2} .0179498{col 39}{space 2} .0200181{col 50}{space 1}    0.90{col 59}{space 3}0.370{col 67}{space 4} -.021289{col 80}{space 3} .0571887
{txt}{space 25} {c |}
{space 11}1.postsub2af10 {c |}{col 27}{res}{space 2} .0014334{col 39}{space 2} .0058632{col 50}{space 1}    0.24{col 59}{space 3}0.807{col 67}{space 4}-.0100594{col 80}{space 3} .0129263
{txt}{space 25} {c |}
{space 5}postsub2af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0008306{col 39}{space 2} .0073451{col 50}{space 1}   -0.11{col 59}{space 3}0.910{col 67}{space 4}-.0152281{col 80}{space 3}  .013567
{txt}{space 25} {c |}
{space 8}postsub2af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0001099{col 39}{space 2} .0175857{col 50}{space 1}   -0.01{col 59}{space 3}0.995{col 67}{space 4}-.0345807{col 80}{space 3}  .034361
{txt}{space 25} {c |}
postsub2af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2} -.002269{col 39}{space 2} .0202287{col 50}{space 1}   -0.11{col 59}{space 3}0.911{col 67}{space 4}-.0419207{col 80}{space 3} .0373826
{txt}{space 25} {c |}
{space 11}1.postsub3af10 {c |}{col 27}{res}{space 2} .0022607{col 39}{space 2} .0074182{col 50}{space 1}    0.30{col 59}{space 3}0.761{col 67}{space 4}-.0122801{col 80}{space 3} .0168015
{txt}{space 25} {c |}
{space 5}postsub3af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0052682{col 39}{space 2} .0087561{col 50}{space 1}    0.60{col 59}{space 3}0.547{col 67}{space 4}-.0118953{col 80}{space 3} .0224316
{txt}{space 25} {c |}
{space 8}postsub3af10#tall {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0010244{col 39}{space 2}  .015332{col 50}{space 1}   -0.07{col 59}{space 3}0.947{col 67}{space 4}-.0310777{col 80}{space 3}  .029029
{txt}{space 25} {c |}
postsub3af10#treataf#tall {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2} .0173091{col 39}{space 2} .0182368{col 50}{space 1}    0.95{col 59}{space 3}0.343{col 67}{space 4}-.0184382{col 80}{space 3} .0530563
{txt}{space 25} {c |}
{space 21}mage {c |}{col 27}{res}{space 2}-9.42e-06{col 39}{space 2}   .00003{col 50}{space 1}   -0.31{col 59}{space 3}0.753{col 67}{space 4}-.0000681{col 80}{space 3} .0000493
{txt}{space 20}mage2 {c |}{col 27}{res}{space 2} 2.72e-07{col 39}{space 2} 3.12e-07{col 50}{space 1}    0.87{col 59}{space 3}0.383{col 67}{space 4}-3.39e-07{col 80}{space 3} 8.84e-07
{txt}{space 20}_cons {c |}{col 27}{res}{space 2}-.0022479{col 39}{space 2} .0005245{col 50}{space 1}   -4.29{col 59}{space 3}0.000{col 67}{space 4}-.0032759{col 80}{space 3}-.0012198
{txt}{hline 26}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        cmth{col 14}{c |}{space 1}      380{col 27}{space 1}        0{col 39}{result}{space 1}      380{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subtallp
{txt}
{com}. 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***SMALLER OR EQUAL 90CM, PRICES
. 
. reghdfe dlogprice i.presub3af10##ib1.treataf##i.tall i.presub2af10##ib1.treataf##i.tall i.presub1af10##ib1.treataf##i.tall i.sub1af10##ib1.treataf##i.tall i.sub2af10##ib1.treataf##i.tall i.sub3af10##ib1.treataf##i.tall i.postsub1af10##ib1.treataf##i.tall i.postsub2af10##ib1.treataf##i.tall i.postsub3af10##ib1.treataf##i.tall  mage mage2 if samplet  , absorb(id2 cmth) cluster(id)
{res}{txt}note: {res}0bn.treataf{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treataf#1bn.tall{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 0.treataf omitted because of collinearity
{txt}note: 1.tall omitted because of collinearity
{txt}note: 0.treataf#1.tall omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   537,381
{txt}Absorbing 2 HDFE groups{col 51}F({res}  38{txt},{res}  11691{txt}){col 67}= {res}      1.68
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0057
{txt}{col 51}R-squared{col 67}= {res}    0.4104
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0262
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    11,692{txt}{col 51}Root MSE{col 67}= {res}    0.0695

{txt}{ralign 91:(Std. err. adjusted for {res:11,692} clusters in {res:id})}
{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 27}{c |}{col 39}    Robust
{col 1}                dlogprice{col 27}{c |} Coefficient{col 39}  std. err.{col 51}      t{col 59}   P>|t|{col 67}     [95% con{col 80}f. interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 12}1.presub3af10 {c |}{col 27}{res}{space 2} .0248523{col 39}{space 2} .0140186{col 50}{space 1}    1.77{col 59}{space 3}0.076{col 67}{space 4}-.0026265{col 80}{space 3} .0523312
{txt}{space 16}0.treataf {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 6}presub3af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0288975{col 39}{space 2} .0164903{col 50}{space 1}   -1.75{col 59}{space 3}0.080{col 67}{space 4}-.0612212{col 80}{space 3} .0034263
{txt}{space 25} {c |}
{space 19}1.tall {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 9}presub3af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.0152013{col 39}{space 2} .0161834{col 50}{space 1}   -0.94{col 59}{space 3}0.348{col 67}{space 4}-.0469235{col 80}{space 3}  .016521
{txt}{space 25} {c |}
{space 13}treataf#tall {c |}
{space 21}0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 1}presub3af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2} .0195269{col 39}{space 2} .0192012{col 50}{space 1}    1.02{col 59}{space 3}0.309{col 67}{space 4}-.0181107{col 80}{space 3} .0571644
{txt}{space 25} {c |}
{space 12}1.presub2af10 {c |}{col 27}{res}{space 2}-.0201381{col 39}{space 2} .0213527{col 50}{space 1}   -0.94{col 59}{space 3}0.346{col 67}{space 4}-.0619929{col 80}{space 3} .0217166
{txt}{space 25} {c |}
{space 6}presub2af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0258351{col 39}{space 2} .0229659{col 50}{space 1}    1.12{col 59}{space 3}0.261{col 67}{space 4}-.0191819{col 80}{space 3} .0708522
{txt}{space 25} {c |}
{space 9}presub2af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .0328666{col 39}{space 2}  .022627{col 50}{space 1}    1.45{col 59}{space 3}0.146{col 67}{space 4}-.0114861{col 80}{space 3} .0772194
{txt}{space 25} {c |}
{space 1}presub2af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}-.0364739{col 39}{space 2} .0245326{col 50}{space 1}   -1.49{col 59}{space 3}0.137{col 67}{space 4}-.0845619{col 80}{space 3} .0116142
{txt}{space 25} {c |}
{space 12}1.presub1af10 {c |}{col 27}{res}{space 2}-.0068296{col 39}{space 2} .0136429{col 50}{space 1}   -0.50{col 59}{space 3}0.617{col 67}{space 4} -.033572{col 80}{space 3} .0199129
{txt}{space 25} {c |}
{space 6}presub1af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}  .002784{col 39}{space 2}  .015198{col 50}{space 1}    0.18{col 59}{space 3}0.855{col 67}{space 4}-.0270066{col 80}{space 3} .0325746
{txt}{space 25} {c |}
{space 9}presub1af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .0088559{col 39}{space 2} .0154237{col 50}{space 1}    0.57{col 59}{space 3}0.566{col 67}{space 4}-.0213771{col 80}{space 3} .0390889
{txt}{space 25} {c |}
{space 1}presub1af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}-.0027585{col 39}{space 2} .0174618{col 50}{space 1}   -0.16{col 59}{space 3}0.874{col 67}{space 4}-.0369865{col 80}{space 3} .0314694
{txt}{space 25} {c |}
{space 15}1.sub1af10 {c |}{col 27}{res}{space 2}-.0318974{col 39}{space 2} .0111564{col 50}{space 1}   -2.86{col 59}{space 3}0.004{col 67}{space 4}-.0537659{col 80}{space 3}-.0100289
{txt}{space 25} {c |}
{space 9}sub1af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0235362{col 39}{space 2} .0130287{col 50}{space 1}    1.81{col 59}{space 3}0.071{col 67}{space 4}-.0020022{col 80}{space 3} .0490745
{txt}{space 25} {c |}
{space 12}sub1af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .0238861{col 39}{space 2} .0130005{col 50}{space 1}    1.84{col 59}{space 3}0.066{col 67}{space 4} -.001597{col 80}{space 3} .0493691
{txt}{space 25} {c |}
{space 4}sub1af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}-.0184306{col 39}{space 2} .0153831{col 50}{space 1}   -1.20{col 59}{space 3}0.231{col 67}{space 4}-.0485839{col 80}{space 3} .0117228
{txt}{space 25} {c |}
{space 15}1.sub2af10 {c |}{col 27}{res}{space 2} .0352785{col 39}{space 2} .0196686{col 50}{space 1}    1.79{col 59}{space 3}0.073{col 67}{space 4}-.0032752{col 80}{space 3} .0738322
{txt}{space 25} {c |}
{space 9}sub2af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} -.021836{col 39}{space 2}   .02147{col 50}{space 1}   -1.02{col 59}{space 3}0.309{col 67}{space 4}-.0639209{col 80}{space 3} .0202488
{txt}{space 25} {c |}
{space 12}sub2af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.0367604{col 39}{space 2} .0209949{col 50}{space 1}   -1.75{col 59}{space 3}0.080{col 67}{space 4}-.0779139{col 80}{space 3} .0043931
{txt}{space 25} {c |}
{space 4}sub2af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2} .0317432{col 39}{space 2} .0232161{col 50}{space 1}    1.37{col 59}{space 3}0.172{col 67}{space 4}-.0137642{col 80}{space 3} .0772507
{txt}{space 25} {c |}
{space 15}1.sub3af10 {c |}{col 27}{res}{space 2}-.0168106{col 39}{space 2} .0152839{col 50}{space 1}   -1.10{col 59}{space 3}0.271{col 67}{space 4}-.0467695{col 80}{space 3} .0131483
{txt}{space 25} {c |}
{space 9}sub3af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0052195{col 39}{space 2} .0172077{col 50}{space 1}   -0.30{col 59}{space 3}0.762{col 67}{space 4}-.0389495{col 80}{space 3} .0285104
{txt}{space 25} {c |}
{space 12}sub3af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .0051047{col 39}{space 2} .0166068{col 50}{space 1}    0.31{col 59}{space 3}0.759{col 67}{space 4}-.0274474{col 80}{space 3} .0376567
{txt}{space 25} {c |}
{space 4}sub3af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2} .0116448{col 39}{space 2} .0189783{col 50}{space 1}    0.61{col 59}{space 3}0.540{col 67}{space 4}-.0255559{col 80}{space 3} .0488455
{txt}{space 25} {c |}
{space 11}1.postsub1af10 {c |}{col 27}{res}{space 2} .0027021{col 39}{space 2} .0149275{col 50}{space 1}    0.18{col 59}{space 3}0.856{col 67}{space 4}-.0265582{col 80}{space 3} .0319625
{txt}{space 25} {c |}
{space 5}postsub1af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0052094{col 39}{space 2} .0180695{col 50}{space 1}    0.29{col 59}{space 3}0.773{col 67}{space 4}-.0302097{col 80}{space 3} .0406286
{txt}{space 25} {c |}
{space 8}postsub1af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .0058173{col 39}{space 2}  .016509{col 50}{space 1}    0.35{col 59}{space 3}0.725{col 67}{space 4} -.026543{col 80}{space 3} .0381776
{txt}{space 25} {c |}
postsub1af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}-.0179498{col 39}{space 2} .0200181{col 50}{space 1}   -0.90{col 59}{space 3}0.370{col 67}{space 4}-.0571887{col 80}{space 3}  .021289
{txt}{space 25} {c |}
{space 11}1.postsub2af10 {c |}{col 27}{res}{space 2} .0013236{col 39}{space 2} .0165795{col 50}{space 1}    0.08{col 59}{space 3}0.936{col 67}{space 4} -.031175{col 80}{space 3} .0338221
{txt}{space 25} {c |}
{space 5}postsub2af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0030996{col 39}{space 2} .0188481{col 50}{space 1}   -0.16{col 59}{space 3}0.869{col 67}{space 4} -.040045{col 80}{space 3} .0338458
{txt}{space 25} {c |}
{space 8}postsub2af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .0001099{col 39}{space 2} .0175857{col 50}{space 1}    0.01{col 59}{space 3}0.995{col 67}{space 4} -.034361{col 80}{space 3} .0345807
{txt}{space 25} {c |}
postsub2af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}  .002269{col 39}{space 2} .0202287{col 50}{space 1}    0.11{col 59}{space 3}0.911{col 67}{space 4}-.0373826{col 80}{space 3} .0419207
{txt}{space 25} {c |}
{space 11}1.postsub3af10 {c |}{col 27}{res}{space 2} .0012364{col 39}{space 2} .0134179{col 50}{space 1}    0.09{col 59}{space 3}0.927{col 67}{space 4}-.0250651{col 80}{space 3} .0275378
{txt}{space 25} {c |}
{space 5}postsub3af10#treataf {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0225773{col 39}{space 2} .0159974{col 50}{space 1}    1.41{col 59}{space 3}0.158{col 67}{space 4}-.0087803{col 80}{space 3} .0539348
{txt}{space 25} {c |}
{space 8}postsub3af10#tall {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .0010244{col 39}{space 2}  .015332{col 50}{space 1}    0.07{col 59}{space 3}0.947{col 67}{space 4} -.029029{col 80}{space 3} .0310777
{txt}{space 25} {c |}
postsub3af10#treataf#tall {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}-.0173091{col 39}{space 2} .0182368{col 50}{space 1}   -0.95{col 59}{space 3}0.343{col 67}{space 4}-.0530563{col 80}{space 3} .0184382
{txt}{space 25} {c |}
{space 21}mage {c |}{col 27}{res}{space 2}-9.42e-06{col 39}{space 2}   .00003{col 50}{space 1}   -0.31{col 59}{space 3}0.753{col 67}{space 4}-.0000681{col 80}{space 3} .0000493
{txt}{space 20}mage2 {c |}{col 27}{res}{space 2} 2.72e-07{col 39}{space 2} 3.12e-07{col 50}{space 1}    0.87{col 59}{space 3}0.383{col 67}{space 4}-3.39e-07{col 80}{space 3} 8.84e-07
{txt}{space 20}_cons {c |}{col 27}{res}{space 2}-.0022479{col 39}{space 2} .0005245{col 50}{space 1}   -4.29{col 59}{space 3}0.000{col 67}{space 4}-.0032759{col 80}{space 3}-.0012198
{txt}{hline 26}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   211609{col 27}{space 1}   211609{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        cmth{col 14}{c |}{space 1}      380{col 27}{space 1}        0{col 39}{result}{space 1}      380{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subshortp
{txt}
{com}.                                 
. 
. 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***TABLES
. 
. **UNITS AND PRICES
. esttab   subu nonsubu  subp nonsubp, se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) keep(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10 ) 
{res}
{txt}{hline 76}
{txt}                      (1)             (2)             (3)             (4)   
{txt}                     subu         nonsubu            subp         nonsubp   
{txt}{hline 76}
{txt}1.presub3~10{res}        0.073           0.032           0.012*         -0.001   {txt}
            {res} {ralign 12:{txt:(}0.089{txt:)}}    {ralign 12:{txt:(}0.050{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}   {txt}
{txt}1.presub2~10{res}       -0.109          -0.094**         0.007           0.003   {txt}
            {res} {ralign 12:{txt:(}0.079{txt:)}}    {ralign 12:{txt:(}0.040{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.004{txt:)}}   {txt}
{txt}1.presub1a~0{res}       -0.126           0.051           0.001           0.001   {txt}
            {res} {ralign 12:{txt:(}0.085{txt:)}}    {ralign 12:{txt:(}0.044{txt:)}}    {ralign 12:{txt:(}0.006{txt:)}}    {ralign 12:{txt:(}0.004{txt:)}}   {txt}
{txt}1.sub1af10  {res}        0.514***       -0.021          -0.012**        -0.004   {txt}
            {res} {ralign 12:{txt:(}0.078{txt:)}}    {ralign 12:{txt:(}0.040{txt:)}}    {ralign 12:{txt:(}0.006{txt:)}}    {ralign 12:{txt:(}0.004{txt:)}}   {txt}
{txt}1.sub2af10  {res}        0.097           0.090*          0.005           0.010** {txt}
            {res} {ralign 12:{txt:(}0.076{txt:)}}    {ralign 12:{txt:(}0.049{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.004{txt:)}}   {txt}
{txt}1.sub3af10  {res}       -0.044          -0.010          -0.012**        -0.009** {txt}
            {res} {ralign 12:{txt:(}0.066{txt:)}}    {ralign 12:{txt:(}0.042{txt:)}}    {ralign 12:{txt:(}0.006{txt:)}}    {ralign 12:{txt:(}0.004{txt:)}}   {txt}
{txt}1.postsub1~0{res}       -0.193***       -0.037           0.008          -0.001   {txt}
            {res} {ralign 12:{txt:(}0.070{txt:)}}    {ralign 12:{txt:(}0.049{txt:)}}    {ralign 12:{txt:(}0.006{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}   {txt}
{txt}1.postsub2~0{res}       -0.145**        -0.132***        0.002           0.000   {txt}
            {res} {ralign 12:{txt:(}0.059{txt:)}}    {ralign 12:{txt:(}0.044{txt:)}}    {ralign 12:{txt:(}0.006{txt:)}}    {ralign 12:{txt:(}0.004{txt:)}}   {txt}
{txt}1.postsub3~0{res}       -0.010           0.046           0.002           0.012***{txt}
            {res} {ralign 12:{txt:(}0.072{txt:)}}    {ralign 12:{txt:(}0.048{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.004{txt:)}}   {txt}
{txt}{hline 76}
{txt}N           {res}       537385          537385          537385          537385   {txt}
{txt}{hline 76}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subu nonsubu  subp nonsubp  using "R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_ff.tex", replace  se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) keep(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) 
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_ff.tex"'})

{com}. 
. esttab   subu_cy subu_trends,  se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) keep(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) 
{res}
{txt}{hline 44}
{txt}                      (1)             (2)   
{txt}                  subu_cy     subu_trends   
{txt}{hline 44}
{txt}1.presub3~10{res}        0.097           0.080   {txt}
            {res} {ralign 12:{txt:(}0.091{txt:)}}    {ralign 12:{txt:(}0.089{txt:)}}   {txt}
{txt}1.presub2~10{res}       -0.085          -0.101   {txt}
            {res} {ralign 12:{txt:(}0.081{txt:)}}    {ralign 12:{txt:(}0.080{txt:)}}   {txt}
{txt}1.presub1a~0{res}       -0.103          -0.119   {txt}
            {res} {ralign 12:{txt:(}0.086{txt:)}}    {ralign 12:{txt:(}0.086{txt:)}}   {txt}
{txt}1.sub1af10  {res}        0.537***        0.521***{txt}
            {res} {ralign 12:{txt:(}0.080{txt:)}}    {ralign 12:{txt:(}0.078{txt:)}}   {txt}
{txt}1.sub2af10  {res}        0.120           0.103   {txt}
            {res} {ralign 12:{txt:(}0.077{txt:)}}    {ralign 12:{txt:(}0.076{txt:)}}   {txt}
{txt}1.sub3af10  {res}       -0.020          -0.037   {txt}
            {res} {ralign 12:{txt:(}0.067{txt:)}}    {ralign 12:{txt:(}0.066{txt:)}}   {txt}
{txt}1.postsub1~0{res}       -0.169**        -0.186***{txt}
            {res} {ralign 12:{txt:(}0.071{txt:)}}    {ralign 12:{txt:(}0.070{txt:)}}   {txt}
{txt}1.postsub2~0{res}       -0.163***       -0.138** {txt}
            {res} {ralign 12:{txt:(}0.060{txt:)}}    {ralign 12:{txt:(}0.059{txt:)}}   {txt}
{txt}1.postsub3~0{res}       -0.014          -0.005   {txt}
            {res} {ralign 12:{txt:(}0.073{txt:)}}    {ralign 12:{txt:(}0.072{txt:)}}   {txt}
{txt}{hline 44}
{txt}N           {res}       537385          537385   {txt}
{txt}{hline 44}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subu_cy subu_trends  using "R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_ff_cy.tex", replace  se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) keep(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) 
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_ff_cy.tex"'})

{com}. 
. ****UNITS AND PRICES BY HEIGHT
. esttab   subtallu subshortu  subtallp subshortp, se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f) scalars(N ) order(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) keep(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10 ) 
{res}
{txt}{hline 76}
{txt}                      (1)             (2)             (3)             (4)   
{txt}                 subtallu       subshortu        subtallp       subshortp   
{txt}{hline 76}
{txt}1.presub3~10{res}        0.058           0.143           0.010           0.025*  {txt}
            {res} {ralign 12:{txt:(}0.099{txt:)}}    {ralign 12:{txt:(}0.208{txt:)}}    {ralign 12:{txt:(}0.008{txt:)}}    {ralign 12:{txt:(}0.014{txt:)}}   {txt}
{txt}1.presub2~10{res}       -0.079          -0.253           0.013*         -0.020   {txt}
            {res} {ralign 12:{txt:(}0.090{txt:)}}    {ralign 12:{txt:(}0.156{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.021{txt:)}}   {txt}
{txt}1.presub1a~0{res}       -0.178*          0.121           0.002          -0.007   {txt}
            {res} {ralign 12:{txt:(}0.097{txt:)}}    {ralign 12:{txt:(}0.161{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.014{txt:)}}   {txt}
{txt}1.sub1af10  {res}        0.517***        0.505***       -0.008          -0.032***{txt}
            {res} {ralign 12:{txt:(}0.091{txt:)}}    {ralign 12:{txt:(}0.121{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.011{txt:)}}   {txt}
{txt}1.sub2af10  {res}        0.100           0.082          -0.001           0.035*  {txt}
            {res} {ralign 12:{txt:(}0.086{txt:)}}    {ralign 12:{txt:(}0.159{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.020{txt:)}}   {txt}
{txt}1.sub3af10  {res}       -0.012          -0.200          -0.012*         -0.017   {txt}
            {res} {ralign 12:{txt:(}0.074{txt:)}}    {ralign 12:{txt:(}0.130{txt:)}}    {ralign 12:{txt:(}0.006{txt:)}}    {ralign 12:{txt:(}0.015{txt:)}}   {txt}
{txt}1.postsub1~0{res}       -0.224***       -0.015           0.009           0.003   {txt}
            {res} {ralign 12:{txt:(}0.075{txt:)}}    {ralign 12:{txt:(}0.181{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.015{txt:)}}   {txt}
{txt}1.postsub2~0{res}       -0.166**        -0.039           0.001           0.001   {txt}
            {res} {ralign 12:{txt:(}0.065{txt:)}}    {ralign 12:{txt:(}0.144{txt:)}}    {ralign 12:{txt:(}0.006{txt:)}}    {ralign 12:{txt:(}0.017{txt:)}}   {txt}
{txt}1.postsub3~0{res}        0.013          -0.146           0.002           0.001   {txt}
            {res} {ralign 12:{txt:(}0.079{txt:)}}    {ralign 12:{txt:(}0.173{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.013{txt:)}}   {txt}
{txt}{hline 76}
{txt}N           {res}       537381          537381          537381          537381   {txt}
{txt}{hline 76}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subtallu subshortu  subtallp subshortp using "R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_ff_tall.tex", replace  se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) keep(1.presub3af10 1.presub2af10 1.presub1af10 1.sub1af10 1.sub2af10 1.sub3af10 1.postsub1af10 1.postsub2af10 1.postsub3af10) 
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_ff_tall.tex"'})

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. ********************************************************************************************************************************************************************************************************************
. *************************************************AUSTRIA************************************************************************************************************************************************************
. *************************************************Washing Machine Program**2010**************************************************************************************************************************************
. *************************************************Effects on Unit Sales and Prices of Subsidized and Non-subsidized**************************************************************************************************
. ********************************************************************************************************************************************************************************************************************    
. 
. egen cmt=group(country month treata)
{txt}(1,740,985 missing values generated)

{com}. egen cy= group(country year)
{txt}
{com}. 
.  encode country, gen(c)
{txt}
{com}.  xtset id2

{txt}{col 1}Panel variable: {res}id2{txt} (unbalanced)

{com}.  
.  keep if category=="washing machine"
{txt}(1,740,985 observations deleted)

{com}.  
. egen median=median(price) if year==2010 & treata==1 & month==2
{txt}(772,251 missing values generated)

{com}. gen mprice=1 if price>median & treata==1 & year==2010 & month==2 & price!=.
{txt}(772,340 missing values generated)

{com}. replace mprice=0 if price<=median & treata==1 & year==2010 & month==2 & price!=.
{txt}(36 real changes made)

{com}. by id, sort: egen summp=sum(mprice)
{txt}
{com}. by id, sort: gen medprice=1 if summp>0
{txt}(767,864 missing values generated)

{com}. replace medprice=0 if summp==0
{txt}(767,864 real changes made)

{com}. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
. ***UNIT SALES, SUBSIDIZED (3-MONTH WINDOW)
. 
. reghdfe dlogunits i.presub3a##ib1.treata i.presub2a##ib1.treata i.presub1a##ib1.treata i.sub1a##ib1.treata i.sub2a##ib1.treata i.postsub1a##ib1.treata i.postsub2a##ib1.treata i.postsub3a##ib1.treata  mage mage2 , absorb(id2 cmt) cluster(id) 
{res}{txt}(dropped 88828 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treata{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 0.treata omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   267,502
{txt}Absorbing 2 HDFE groups{col 51}F({res}  18{txt},{res}   6418{txt}){col 67}= {res}      6.65
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4543
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0805
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     6,419{txt}{col 51}Root MSE{col 67}= {res}    0.7124

{txt}{ralign 82:(Std. err. adjusted for {res:6,419} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogunits{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3a {c |}{col 18}{res}{space 2} .0612902{col 30}{space 2} .1584328{col 41}{space 1}    0.39{col 50}{space 3}0.699{col 58}{space 4} -.249291{col 71}{space 3} .3718714
{txt}{space 8}0.treata {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0408984{col 30}{space 2} .1729348{col 41}{space 1}    0.24{col 50}{space 3}0.813{col 58}{space 4}-.2981115{col 71}{space 3} .3799084
{txt}{space 16} {c |}
{space 6}1.presub2a {c |}{col 18}{res}{space 2} .2212265{col 30}{space 2} .1757219{col 41}{space 1}    1.26{col 50}{space 3}0.208{col 58}{space 4}-.1232471{col 71}{space 3} .5657001
{txt}{space 16} {c |}
{space 1}presub2a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.1468662{col 30}{space 2} .1893705{col 41}{space 1}   -0.78{col 50}{space 3}0.438{col 58}{space 4}-.5180957{col 71}{space 3} .2243632
{txt}{space 16} {c |}
{space 6}1.presub1a {c |}{col 18}{res}{space 2}-.1112671{col 30}{space 2} .1637043{col 41}{space 1}   -0.68{col 50}{space 3}0.497{col 58}{space 4}-.4321821{col 71}{space 3} .2096479
{txt}{space 16} {c |}
{space 1}presub1a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0473709{col 30}{space 2} .1743099{col 41}{space 1}    0.27{col 50}{space 3}0.786{col 58}{space 4}-.2943345{col 71}{space 3} .3890764
{txt}{space 16} {c |}
{space 9}1.sub1a {c |}{col 18}{res}{space 2} .3820048{col 30}{space 2} .2075926{col 41}{space 1}    1.84{col 50}{space 3}0.066{col 58}{space 4}-.0249459{col 71}{space 3} .7889555
{txt}{space 16} {c |}
{space 4}sub1a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.4653005{col 30}{space 2} .2178274{col 41}{space 1}   -2.14{col 50}{space 3}0.033{col 58}{space 4}-.8923148{col 71}{space 3}-.0382862
{txt}{space 16} {c |}
{space 9}1.sub2a {c |}{col 18}{res}{space 2}  .195131{col 30}{space 2} .1490407{col 41}{space 1}    1.31{col 50}{space 3}0.190{col 58}{space 4}-.0970385{col 71}{space 3} .4873005
{txt}{space 16} {c |}
{space 4}sub2a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.2432943{col 30}{space 2} .1612434{col 41}{space 1}   -1.51{col 50}{space 3}0.131{col 58}{space 4}-.5593851{col 71}{space 3} .0727966
{txt}{space 16} {c |}
{space 5}1.postsub1a {c |}{col 18}{res}{space 2} .0047155{col 30}{space 2}    .1505{col 41}{space 1}    0.03{col 50}{space 3}0.975{col 58}{space 4}-.2903147{col 71}{space 3} .2997457
{txt}{space 16} {c |}
postsub1a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .1786894{col 30}{space 2} .1634671{col 41}{space 1}    1.09{col 50}{space 3}0.274{col 58}{space 4}-.1417607{col 71}{space 3} .4991395
{txt}{space 16} {c |}
{space 5}1.postsub2a {c |}{col 18}{res}{space 2}-.4121105{col 30}{space 2}  .173169{col 41}{space 1}   -2.38{col 50}{space 3}0.017{col 58}{space 4}-.7515795{col 71}{space 3}-.0726415
{txt}{space 16} {c |}
postsub2a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}  .452554{col 30}{space 2} .1853917{col 41}{space 1}    2.44{col 50}{space 3}0.015{col 58}{space 4} .0891244{col 71}{space 3} .8159836
{txt}{space 16} {c |}
{space 5}1.postsub3a {c |}{col 18}{res}{space 2}-.1466649{col 30}{space 2} .1310348{col 41}{space 1}   -1.12{col 50}{space 3}0.263{col 58}{space 4}-.4035368{col 71}{space 3} .1102069
{txt}{space 16} {c |}
postsub3a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0397062{col 30}{space 2}  .143505{col 41}{space 1}    0.28{col 50}{space 3}0.782{col 58}{space 4}-.2416115{col 71}{space 3} .3210238
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2}-.0048484{col 30}{space 2} .0005927{col 41}{space 1}   -8.18{col 50}{space 3}0.000{col 58}{space 4}-.0060103{col 71}{space 3}-.0036866
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} .0000479{col 30}{space 2} 7.92e-06{col 41}{space 1}    6.05{col 50}{space 3}0.000{col 58}{space 4} .0000324{col 71}{space 3} .0000635
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} .0542449{col 30}{space 2} .0086575{col 41}{space 1}    6.27{col 50}{space 3}0.000{col 58}{space 4} .0372734{col 71}{space 3} .0712164
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   108619{col 27}{space 1}   108619{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      121{col 27}{space 1}        0{col 39}{result}{space 1}      121{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu
{txt}
{com}. generate samples = e(sample)
{txt}
{com}. codebook id if samples

{txt}{hline}
{res}id{right:(unlabeled)}
{txt}{hline}

{col 19}Type: String ({res}str11{txt})

{col 10}Unique values: {res}6,419{col 51}{txt}Missing "": {res}0{txt}/{res}267,502

{txt}{col 15}Examples: {res}"27955025"
{col 25}"38011715"
{col 25}"57585508"
{col 25}"76418225"
{txt}
{com}. codebook id if samples & treata==1

{txt}{hline}
{res}id{right:(unlabeled)}
{txt}{hline}

{col 19}Type: String ({res}str11{txt}), but longest is str8

{col 10}Unique values: {res}124{col 51}{txt}Missing "": {res}0{txt}/{res}1,847

{txt}{col 15}Examples: {res}"49141072"
{col 25}"52744970"
{col 25}"53372770"
{col 25}"55003953"
{txt}
{com}.                 
.         
.                  ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*(1+exp(_b[1.sub2a]))-2)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1a])*(1+exp(_b[1.presub2a]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*exp(_b[1.sub2a])*exp(_b[1.postsub1a])*(1+exp(_b[1.postsub2a]))-2)), post;

     {txt}program: {res}1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*(1+exp(_b[1.sub2a]))-2)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1a])*(1+exp(_b[1.presub2a]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*exp(_b[1.sub2a])*exp(_b[1.postsub1a])*(1+exp(_b[1.postsub2a]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .8117291{col 26}{space 2} .4247847{col 37}{space 1}    1.91{col 46}{space 3}0.056{col 54}{space 4}-.0208337{col 67}{space 3} 1.644292
{txt}{space 4}preshift {c |}{col 14}{res}{space 2} .0054662{col 26}{space 2} .1729644{col 37}{space 1}    0.03{col 46}{space 3}0.975{col 54}{space 4}-.3335377{col 67}{space 3} .3444702
{txt}{space 3}postshift {c |}{col 14}{res}{space 2}  .660031{col 26}{space 2} .4395028{col 37}{space 1}    1.50{col 46}{space 3}0.133{col 54}{space 4}-.2013787{col 67}{space 3} 1.521441
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit    cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.477226{col 26}{space 2} .9202696{col 37}{space 1}    1.61{col 46}{space 3}0.108{col 54}{space 4}-.3264688{col 67}{space 3} 3.280922
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost
.                 nlcom           1000*931986/((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*69.41), level(90)

       {txt}_nl_1: {res}1000*931986/((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*69.41)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}   153.16{col 26}{space 2} 95.41425{col 37}{space 1}    1.61{col 46}{space 3}0.108{col 54}{space 4} -3.78252{col 67}{space 3} 310.1024
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost (25th percentile)
.                 nlcom           1000*931986/((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*75.68), level(90)

       {txt}_nl_1: {res}1000*931986/((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*75.68)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 140.4708{col 26}{space 2} 87.50929{col 37}{space 1}    1.61{col 46}{space 3}0.108{col 54}{space 4}-3.469142{col 67}{space 3} 284.4108
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost (10th percentile)
.                 nlcom           1000*931986/((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*91.68), level(90)

       {txt}_nl_1: {res}1000*931986/((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*91.68)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 115.9559{col 26}{space 2} 72.23717{col 37}{space 1}    1.61{col 46}{space 3}0.108{col 54}{space 4}-2.863707{col 67}{space 3} 234.7754
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Energy savings
.                 nlcom           ((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*69.41)/1000, level(90)

       {txt}_nl_1: {res}((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*69.41)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}  6085.05{col 26}{space 2} 3790.811{col 37}{space 1}    1.61{col 46}{space 3}0.108{col 54}{space 4}-150.2796{col 67}{space 3} 12320.38
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
. ***UNIT SALES, SUBSIDIZED (cy)
. 
. reghdfe dlogunits i.presub3a##ib1.treata i.presub2a##ib1.treata i.presub1a##ib1.treata i.sub1a##ib1.treata i.sub2a##ib1.treata i.postsub1a##ib1.treata i.postsub2a##ib1.treata i.postsub3a##ib1.treata  mage mage2 , absorb(id2 cmt cy) cluster(id) 
{res}{txt}(dropped 88828 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treata{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 20 iterations)
{res}{txt}note: 0.treata omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   267,502
{txt}Absorbing 3 HDFE groups{col 51}F({res}  18{txt},{res}   6418{txt}){col 67}= {res}      7.29
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4547
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0806
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     6,419{txt}{col 51}Root MSE{col 67}= {res}    0.7124

{txt}{ralign 82:(Std. err. adjusted for {res:6,419} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogunits{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3a {c |}{col 18}{res}{space 2}-.0297614{col 30}{space 2} .1591623{col 41}{space 1}   -0.19{col 50}{space 3}0.852{col 58}{space 4}-.3417726{col 71}{space 3} .2822498
{txt}{space 8}0.treata {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0439456{col 30}{space 2} .1731994{col 41}{space 1}    0.25{col 50}{space 3}0.800{col 58}{space 4} -.295583{col 71}{space 3} .3834741
{txt}{space 16} {c |}
{space 6}1.presub2a {c |}{col 18}{res}{space 2} .1314044{col 30}{space 2} .1758264{col 41}{space 1}    0.75{col 50}{space 3}0.455{col 58}{space 4} -.213274{col 71}{space 3} .4760829
{txt}{space 16} {c |}
{space 1}presub2a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.1341079{col 30}{space 2} .1898786{col 41}{space 1}   -0.71{col 50}{space 3}0.480{col 58}{space 4}-.5063334{col 71}{space 3} .2381176
{txt}{space 16} {c |}
{space 6}1.presub1a {c |}{col 18}{res}{space 2}-.2003365{col 30}{space 2} .1649778{col 41}{space 1}   -1.21{col 50}{space 3}0.225{col 58}{space 4} -.523748{col 71}{space 3}  .123075
{txt}{space 16} {c |}
{space 1}presub1a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0586157{col 30}{space 2} .1743706{col 41}{space 1}    0.34{col 50}{space 3}0.737{col 58}{space 4}-.2832087{col 71}{space 3} .4004402
{txt}{space 16} {c |}
{space 9}1.sub1a {c |}{col 18}{res}{space 2} .2940816{col 30}{space 2} .2099733{col 41}{space 1}    1.40{col 50}{space 3}0.161{col 58}{space 4}-.1175362{col 71}{space 3} .7056993
{txt}{space 16} {c |}
{space 4}sub1a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.4554724{col 30}{space 2} .2178192{col 41}{space 1}   -2.09{col 50}{space 3}0.037{col 58}{space 4}-.8824707{col 71}{space 3}-.0284741
{txt}{space 16} {c |}
{space 9}1.sub2a {c |}{col 18}{res}{space 2} .1071257{col 30}{space 2} .1497851{col 41}{space 1}    0.72{col 50}{space 3}0.475{col 58}{space 4}-.1865032{col 71}{space 3} .4007545
{txt}{space 16} {c |}
{space 4}sub2a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.2338818{col 30}{space 2} .1612934{col 41}{space 1}   -1.45{col 50}{space 3}0.147{col 58}{space 4}-.5500708{col 71}{space 3} .0823072
{txt}{space 16} {c |}
{space 5}1.postsub1a {c |}{col 18}{res}{space 2}-.0828763{col 30}{space 2} .1518613{col 41}{space 1}   -0.55{col 50}{space 3}0.585{col 58}{space 4}-.3805752{col 71}{space 3} .2148226
{txt}{space 16} {c |}
postsub1a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .1880917{col 30}{space 2} .1637664{col 41}{space 1}    1.15{col 50}{space 3}0.251{col 58}{space 4}-.1329451{col 71}{space 3} .5091286
{txt}{space 16} {c |}
{space 5}1.postsub2a {c |}{col 18}{res}{space 2}-.5009579{col 30}{space 2}  .175826{col 41}{space 1}   -2.85{col 50}{space 3}0.004{col 58}{space 4}-.8456354{col 71}{space 3}-.1562803
{txt}{space 16} {c |}
postsub2a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}  .462462{col 30}{space 2} .1861865{col 41}{space 1}    2.48{col 50}{space 3}0.013{col 58}{space 4} .0974744{col 71}{space 3} .8274497
{txt}{space 16} {c |}
{space 5}1.postsub3a {c |}{col 18}{res}{space 2}-.2351231{col 30}{space 2} .1349129{col 41}{space 1}   -1.74{col 50}{space 3}0.081{col 58}{space 4}-.4995974{col 71}{space 3} .0293513
{txt}{space 16} {c |}
postsub3a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}  .048826{col 30}{space 2} .1440343{col 41}{space 1}    0.34{col 50}{space 3}0.735{col 58}{space 4}-.2335294{col 71}{space 3} .3311814
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2}-.0053312{col 30}{space 2} .0006377{col 41}{space 1}   -8.36{col 50}{space 3}0.000{col 58}{space 4}-.0065814{col 71}{space 3} -.004081
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} .0000533{col 30}{space 2} 8.56e-06{col 41}{space 1}    6.22{col 50}{space 3}0.000{col 58}{space 4} .0000365{col 71}{space 3} .0000701
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} .0622502{col 30}{space 2} .0092404{col 41}{space 1}    6.74{col 50}{space 3}0.000{col 58}{space 4} .0441359{col 71}{space 3} .0803645
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   108619{col 27}{space 1}   108619{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      121{col 27}{space 1}        0{col 39}{result}{space 1}      121{col 53}{text} {col 54}{c |}
{res}{col 1}{text}          cy{col 14}{c |}{space 1}      108{col 27}{space 1}        8{col 39}{result}{space 1}      100{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu_cy
{txt}
{com}. 
. ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*(1+exp(_b[1.sub2a]))-2)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1a])*(1+exp(_b[1.presub2a]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*exp(_b[1.sub2a])*exp(_b[1.postsub1a])*(1+exp(_b[1.postsub2a]))-2)), post;

     {txt}program: {res}1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*(1+exp(_b[1.sub2a]))-2)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1a])*(1+exp(_b[1.presub2a]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*exp(_b[1.sub2a])*exp(_b[1.postsub1a])*(1+exp(_b[1.postsub2a]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .3233232{col 26}{space 2} .3243101{col 37}{space 1}    1.00{col 46}{space 3}0.319{col 54}{space 4}-.3123129{col 67}{space 3} .9589594
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.1240773{col 26}{space 2} .1511213{col 37}{space 1}   -0.82{col 46}{space 3}0.412{col 54}{space 4}-.4202696{col 67}{space 3}  .172115
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .0304207{col 26}{space 2} .2964725{col 37}{space 1}    0.10{col 46}{space 3}0.918{col 54}{space 4}-.5506547{col 67}{space 3} .6114962
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit    cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .2296667{col 26}{space 2} .6842025{col 37}{space 1}    0.34{col 46}{space 3}0.737{col 54}{space 4}-1.111346{col 67}{space 3} 1.570679
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost
.                 nlcom           1000*931986/((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*69.41), level(90)

       {txt}_nl_1: {res}1000*931986/((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*69.41)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 985.1319{col 26}{space 2} 2934.817{col 37}{space 1}    0.34{col 46}{space 3}0.737{col 54}{space 4}-3842.213{col 67}{space 3} 5812.477
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Energy savings
.                 nlcom           ((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*69.41)/1000, level(90)             

       {txt}_nl_1: {res}((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*69.41)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}  946.052{col 26}{space 2} 2818.394{col 37}{space 1}    0.34{col 46}{space 3}0.737{col 54}{space 4}-3689.794{col 67}{space 3} 5581.898
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.         *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
. ***UNIT SALES, SUBSIDIZED (country-specific linear date trends)
. 
. reghdfe dlogunits i.presub3a##ib1.treata i.presub2a##ib1.treata i.presub1a##ib1.treata i.sub1a##ib1.treata i.sub2a##ib1.treata i.postsub1a##ib1.treata i.postsub2a##ib1.treata i.postsub3a##ib1.treata  mage mage2 , absorb(id2 cmt i.c#c.date) cluster(id) 
{res}{txt}(dropped 88828 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treata{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 47 iterations)
{res}{txt}note: 0.treata omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   267,502
{txt}Absorbing 3 HDFE groups{col 51}F({res}  18{txt},{res}   6418{txt}){col 67}= {res}      6.41
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4543
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0805
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     6,419{txt}{col 51}Root MSE{col 67}= {res}    0.7124

{txt}{ralign 82:(Std. err. adjusted for {res:6,419} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogunits{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3a {c |}{col 18}{res}{space 2} .0618403{col 30}{space 2} .1584554{col 41}{space 1}    0.39{col 50}{space 3}0.696{col 58}{space 4}-.2487851{col 71}{space 3} .3724657
{txt}{space 8}0.treata {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0409974{col 30}{space 2} .1729603{col 41}{space 1}    0.24{col 50}{space 3}0.813{col 58}{space 4}-.2980625{col 71}{space 3} .3800574
{txt}{space 16} {c |}
{space 6}1.presub2a {c |}{col 18}{res}{space 2} .2217229{col 30}{space 2} .1757661{col 41}{space 1}    1.26{col 50}{space 3}0.207{col 58}{space 4}-.1228373{col 71}{space 3} .5662831
{txt}{space 16} {c |}
{space 1}presub2a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.1469089{col 30}{space 2} .1893981{col 41}{space 1}   -0.78{col 50}{space 3}0.438{col 58}{space 4}-.5181923{col 71}{space 3} .2243745
{txt}{space 16} {c |}
{space 6}1.presub1a {c |}{col 18}{res}{space 2}-.1107927{col 30}{space 2} .1637318{col 41}{space 1}   -0.68{col 50}{space 3}0.499{col 58}{space 4}-.4317617{col 71}{space 3} .2101762
{txt}{space 16} {c |}
{space 1}presub1a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0474062{col 30}{space 2} .1743131{col 41}{space 1}    0.27{col 50}{space 3}0.786{col 58}{space 4}-.2943058{col 71}{space 3} .3891181
{txt}{space 16} {c |}
{space 9}1.sub1a {c |}{col 18}{res}{space 2} .3824762{col 30}{space 2} .2075462{col 41}{space 1}    1.84{col 50}{space 3}0.065{col 58}{space 4}-.0243836{col 71}{space 3} .7893359
{txt}{space 16} {c |}
{space 4}sub1a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.4653319{col 30}{space 2}  .217817{col 41}{space 1}   -2.14{col 50}{space 3}0.033{col 58}{space 4} -.892326{col 71}{space 3}-.0383379
{txt}{space 16} {c |}
{space 9}1.sub2a {c |}{col 18}{res}{space 2} .1955474{col 30}{space 2} .1490361{col 41}{space 1}    1.31{col 50}{space 3}0.190{col 58}{space 4}-.0966131{col 71}{space 3} .4877078
{txt}{space 16} {c |}
{space 4}sub2a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.2432421{col 30}{space 2} .1612202{col 41}{space 1}   -1.51{col 50}{space 3}0.131{col 58}{space 4}-.5592874{col 71}{space 3} .0728033
{txt}{space 16} {c |}
{space 5}1.postsub1a {c |}{col 18}{res}{space 2} .0050907{col 30}{space 2} .1504966{col 41}{space 1}    0.03{col 50}{space 3}0.973{col 58}{space 4}-.2899328{col 71}{space 3} .3001143
{txt}{space 16} {c |}
postsub1a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .1787265{col 30}{space 2} .1634347{col 41}{space 1}    1.09{col 50}{space 3}0.274{col 58}{space 4}-.1416601{col 71}{space 3} .4991131
{txt}{space 16} {c |}
{space 5}1.postsub2a {c |}{col 18}{res}{space 2}-.4117765{col 30}{space 2} .1731912{col 41}{space 1}   -2.38{col 50}{space 3}0.017{col 58}{space 4}-.7512891{col 71}{space 3}-.0722638
{txt}{space 16} {c |}
postsub2a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .4526079{col 30}{space 2} .1854288{col 41}{space 1}    2.44{col 50}{space 3}0.015{col 58}{space 4} .0891056{col 71}{space 3} .8161102
{txt}{space 16} {c |}
{space 5}1.postsub3a {c |}{col 18}{res}{space 2}-.1462738{col 30}{space 2} .1309699{col 41}{space 1}   -1.12{col 50}{space 3}0.264{col 58}{space 4}-.4030184{col 71}{space 3} .1104709
{txt}{space 16} {c |}
postsub3a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0396501{col 30}{space 2} .1434561{col 41}{space 1}    0.28{col 50}{space 3}0.782{col 58}{space 4}-.2415717{col 71}{space 3} .3208719
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2}-.0048446{col 30}{space 2} .0006029{col 41}{space 1}   -8.04{col 50}{space 3}0.000{col 58}{space 4}-.0060264{col 71}{space 3}-.0036627
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2}  .000048{col 30}{space 2} 7.98e-06{col 41}{space 1}    6.01{col 50}{space 3}0.000{col 58}{space 4} .0000323{col 71}{space 3} .0000636
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} .0541206{col 30}{space 2} .0088546{col 41}{space 1}    6.11{col 50}{space 3}0.000{col 58}{space 4} .0367627{col 71}{space 3} .0714785
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   108619{col 27}{space 1}   108619{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      121{col 27}{space 1}        0{col 39}{result}{space 1}      121{col 53}{text} {col 54}{c |}
{res}{col 1}{text}    c#c.date{col 14}{c |}{space 1}        8{col 27}{space 1}        0{col 39}{result}{space 1}        8{col 53}{text}?{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu_trends
{txt}
{com}. 
. ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*(1+exp(_b[1.sub2a]))-2)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1a])*(1+exp(_b[1.presub2a]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*exp(_b[1.sub2a])*exp(_b[1.postsub1a])*(1+exp(_b[1.postsub2a]))-2)), post;

     {txt}program: {res}1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*(1+exp(_b[1.sub2a]))-2)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1a])*(1+exp(_b[1.presub2a]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*exp(_b[1.sub2a])*exp(_b[1.postsub1a])*(1+exp(_b[1.postsub2a]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .8147583{col 26}{space 2} .4255292{col 37}{space 1}    1.91{col 46}{space 3}0.056{col 54}{space 4}-.0192636{col 67}{space 3}  1.64878
{txt}{space 4}preshift {c |}{col 14}{res}{space 2} .0062206{col 26}{space 2} .1731732{col 37}{space 1}    0.04{col 46}{space 3}0.971{col 54}{space 4}-.3331926{col 67}{space 3} .3456338
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .6639648{col 26}{space 2} .4406468{col 37}{space 1}    1.51{col 46}{space 3}0.132{col 54}{space 4}-.1996871{col 67}{space 3} 1.527617
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit    cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.484944{col 26}{space 2} .9222771{col 37}{space 1}    1.61{col 46}{space 3}0.107{col 54}{space 4}-.3226862{col 67}{space 3} 3.292574
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost
.                 nlcom           1000*931986/((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*69.41), level(90)

       {txt}_nl_1: {res}1000*931986/((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*69.41)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}  152.364{col 26}{space 2} 94.63107{col 37}{space 1}    1.61{col 46}{space 3}0.107{col 54}{space 4}-3.290278{col 67}{space 3} 308.0182
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Energy savings
.                 nlcom           ((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*69.41)/1000, level(90)                     

       {txt}_nl_1: {res}((_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift])*4239.035*14*69.41)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 6116.839{col 26}{space 2} 3799.081{col 37}{space 1}    1.61{col 46}{space 3}0.107{col 54}{space 4}-132.0922{col 67}{space 3} 12365.77
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.         *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
. ***UNIT SALES, SUBSIDIZED (above, below median price)
. reghdfe dlogunits i.presub3a##ib1.treata##ib1.medprice i.presub2a##ib1.treata##ib1.medprice i.presub1a##ib1.treata##ib1.medprice i.sub1a##ib1.treata##ib1.medprice i.sub2a##ib1.treata##ib1.medprice i.postsub1a##ib1.treata##ib1.medprice i.postsub2a##ib1.treata##ib1.medprice i.postsub3a##ib1.treata##ib1.medprice  mage mage2 , absorb(id2 cmt) cluster(id) 
{res}{txt}(dropped 88828 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treata{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.medprice{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 0.treata omitted because of collinearity
{txt}note: 0.medprice omitted because of collinearity
{txt}note: 1.presub3a#0.treata#0.medprice omitted because of collinearity
{txt}note: 1.presub2a#0.treata#0.medprice omitted because of collinearity
{txt}note: 1.presub1a#0.treata#0.medprice omitted because of collinearity
{txt}note: 1.sub1a#0.treata#0.medprice omitted because of collinearity
{txt}note: 1.sub2a#0.treata#0.medprice omitted because of collinearity
{txt}note: 1.postsub1a#0.treata#0.medprice omitted because of collinearity
{txt}note: 1.postsub2a#0.treata#0.medprice omitted because of collinearity
{txt}note: 1.postsub3a#0.treata#0.medprice omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   267,502
{txt}Absorbing 2 HDFE groups{col 51}F({res}  27{txt},{res}   6418{txt}){col 67}= {res}      5.50
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4544
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0805
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0006
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     6,419{txt}{col 51}Root MSE{col 67}= {res}    0.7124

{txt}{ralign 91:(Std. err. adjusted for {res:6,419} clusters in {res:id})}
{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 27}{c |}{col 39}    Robust
{col 1}                dlogunits{col 27}{c |} Coefficient{col 39}  std. err.{col 51}      t{col 59}   P>|t|{col 67}     [95% con{col 80}f. interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.presub3a {c |}{col 27}{res}{space 2} .1839423{col 39}{space 2} .1814359{col 50}{space 1}    1.01{col 59}{space 3}0.311{col 67}{space 4}-.1717325{col 80}{space 3} .5396172
{txt}{space 17}0.treata {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 10}presub3a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1676812{col 39}{space 2} .2258299{col 50}{space 1}    0.74{col 59}{space 3}0.458{col 67}{space 4}-.2750207{col 80}{space 3} .6103832
{txt}{space 25} {c |}
{space 15}0.medprice {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 8}presub3a#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.2494354{col 39}{space 2}  .250181{col 50}{space 1}   -1.00{col 59}{space 3}0.319{col 67}{space 4}-.7398736{col 80}{space 3} .2410027
{txt}{space 25} {c |}
{space 10}treata#medprice {c |}
{space 21}0 0  {c |}{col 27}{res}{space 2} .0182294{col 39}{space 2} .0375832{col 50}{space 1}    0.49{col 59}{space 3}0.628{col 67}{space 4}-.0554461{col 80}{space 3} .0919049
{txt}{space 25} {c |}
{space 1}presub3a#treata#medprice {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 15}1.presub2a {c |}{col 27}{res}{space 2} .5013404{col 39}{space 2} .2291547{col 50}{space 1}    2.19{col 59}{space 3}0.029{col 67}{space 4} .0521208{col 80}{space 3}   .95056
{txt}{space 25} {c |}
{space 10}presub2a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1326149{col 39}{space 2} .2206972{col 50}{space 1}    0.60{col 59}{space 3}0.548{col 67}{space 4}-.3000253{col 80}{space 3}  .565255
{txt}{space 25} {c |}
{space 8}presub2a#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.5595955{col 39}{space 2} .2739244{col 50}{space 1}   -2.04{col 59}{space 3}0.041{col 67}{space 4}-1.096579{col 80}{space 3}-.0226124
{txt}{space 25} {c |}
{space 1}presub2a#treata#medprice {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 15}1.presub1a {c |}{col 27}{res}{space 2}  .035215{col 39}{space 2} .1992534{col 50}{space 1}    0.18{col 59}{space 3}0.860{col 67}{space 4}-.3553881{col 80}{space 3}  .425818
{txt}{space 25} {c |}
{space 10}presub1a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1615778{col 39}{space 2} .2152125{col 50}{space 1}    0.75{col 59}{space 3}0.453{col 67}{space 4}-.2603106{col 80}{space 3} .5834662
{txt}{space 25} {c |}
{space 8}presub1a#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.2606854{col 39}{space 2} .2414442{col 50}{space 1}   -1.08{col 59}{space 3}0.280{col 67}{space 4}-.7339967{col 80}{space 3} .2126259
{txt}{space 25} {c |}
{space 1}presub1a#treata#medprice {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 18}1.sub1a {c |}{col 27}{res}{space 2}  .223873{col 39}{space 2} .1853913{col 50}{space 1}    1.21{col 59}{space 3}0.227{col 67}{space 4}-.1395559{col 80}{space 3} .5873018
{txt}{space 25} {c |}
{space 13}sub1a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.5400186{col 39}{space 2} .2897499{col 50}{space 1}   -1.86{col 59}{space 3}0.062{col 67}{space 4}-1.108025{col 80}{space 3} .0279879
{txt}{space 25} {c |}
{space 11}sub1a#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .2328491{col 39}{space 2} .3154795{col 50}{space 1}    0.74{col 59}{space 3}0.460{col 67}{space 4}-.3855959{col 80}{space 3} .8512942
{txt}{space 25} {c |}
{space 4}sub1a#treata#medprice {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 18}1.sub2a {c |}{col 27}{res}{space 2}-.1483135{col 39}{space 2} .2173046{col 50}{space 1}   -0.68{col 59}{space 3}0.495{col 67}{space 4} -.574303{col 80}{space 3}  .277676
{txt}{space 25} {c |}
{space 13}sub2a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.4181031{col 39}{space 2} .1803368{col 50}{space 1}   -2.32{col 59}{space 3}0.020{col 67}{space 4}-.7716233{col 80}{space 3}-.0645828
{txt}{space 25} {c |}
{space 11}sub2a#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .5182384{col 39}{space 2} .2448157{col 50}{space 1}    2.12{col 59}{space 3}0.034{col 67}{space 4} .0383179{col 80}{space 3} .9981588
{txt}{space 25} {c |}
{space 4}sub2a#treata#medprice {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub1a {c |}{col 27}{res}{space 2} .0614686{col 39}{space 2} .2133783{col 50}{space 1}    0.29{col 59}{space 3}0.773{col 67}{space 4}-.3568241{col 80}{space 3} .4797614
{txt}{space 25} {c |}
{space 9}postsub1a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .2110426{col 39}{space 2} .1844716{col 50}{space 1}    1.14{col 59}{space 3}0.253{col 67}{space 4}-.1505834{col 80}{space 3} .5726686
{txt}{space 25} {c |}
{space 7}postsub1a#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0891078{col 39}{space 2} .2369896{col 50}{space 1}   -0.38{col 59}{space 3}0.707{col 67}{space 4}-.5536864{col 80}{space 3} .3754708
{txt}{space 25} {c |}
postsub1a#treata#medprice {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub2a {c |}{col 27}{res}{space 2}-.0109634{col 39}{space 2} .2020257{col 50}{space 1}   -0.05{col 59}{space 3}0.957{col 67}{space 4}-.4070012{col 80}{space 3} .3850744
{txt}{space 25} {c |}
{space 9}postsub2a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .6551886{col 39}{space 2} .1999793{col 50}{space 1}    3.28{col 59}{space 3}0.001{col 67}{space 4} .2631624{col 80}{space 3} 1.047215
{txt}{space 25} {c |}
{space 7}postsub2a#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.6037594{col 39}{space 2} .1975298{col 50}{space 1}   -3.06{col 59}{space 3}0.002{col 67}{space 4}-.9909837{col 80}{space 3}-.2165351
{txt}{space 25} {c |}
postsub2a#treata#medprice {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub3a {c |}{col 27}{res}{space 2}-.3467344{col 39}{space 2} .1722858{col 50}{space 1}   -2.01{col 59}{space 3}0.044{col 67}{space 4}-.6844721{col 80}{space 3}-.0089967
{txt}{space 25} {c |}
{space 9}postsub3a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0454306{col 39}{space 2} .1652786{col 50}{space 1}   -0.27{col 59}{space 3}0.783{col 67}{space 4}-.3694319{col 80}{space 3} .2785707
{txt}{space 25} {c |}
{space 7}postsub3a#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .2851973{col 39}{space 2} .2034818{col 50}{space 1}    1.40{col 59}{space 3}0.161{col 67}{space 4}-.1136949{col 80}{space 3} .6840895
{txt}{space 25} {c |}
postsub3a#treata#medprice {c |}
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 21}mage {c |}{col 27}{res}{space 2}-.0048416{col 39}{space 2} .0005924{col 50}{space 1}   -8.17{col 59}{space 3}0.000{col 67}{space 4}-.0060029{col 80}{space 3}-.0036802
{txt}{space 20}mage2 {c |}{col 27}{res}{space 2} .0000479{col 39}{space 2} 7.92e-06{col 50}{space 1}    6.05{col 59}{space 3}0.000{col 67}{space 4} .0000323{col 80}{space 3} .0000634
{txt}{space 20}_cons {c |}{col 27}{res}{space 2} .0360969{col 39}{space 2} .0383371{col 50}{space 1}    0.94{col 59}{space 3}0.346{col 67}{space 4}-.0390565{col 80}{space 3} .1112504
{txt}{hline 26}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   108619{col 27}{space 1}   108619{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      121{col 27}{space 1}        0{col 39}{result}{space 1}      121{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu_above
{txt}
{com}. 
. reghdfe dlogunits i.presub3a##ib1.treata##ib0.medprice i.presub2a##ib1.treata##ib0.medprice i.presub1a##ib1.treata##ib0.medprice i.sub1a##ib1.treata##ib0.medprice i.sub2a##ib1.treata##ib0.medprice i.postsub1a##ib1.treata##ib0.medprice i.postsub2a##ib1.treata##ib0.medprice i.postsub3a##ib1.treata##ib0.medprice  mage mage2 , absorb(id2 cmt) cluster(id) 
{res}{txt}(dropped 88828 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treata{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.medprice{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 0.treata omitted because of collinearity
{txt}note: 1.medprice omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   267,502
{txt}Absorbing 2 HDFE groups{col 51}F({res}  27{txt},{res}   6418{txt}){col 67}= {res}      5.50
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4544
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0805
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0006
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     6,419{txt}{col 51}Root MSE{col 67}= {res}    0.7124

{txt}{ralign 91:(Std. err. adjusted for {res:6,419} clusters in {res:id})}
{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 27}{c |}{col 39}    Robust
{col 1}                dlogunits{col 27}{c |} Coefficient{col 39}  std. err.{col 51}      t{col 59}   P>|t|{col 67}     [95% con{col 80}f. interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.presub3a {c |}{col 27}{res}{space 2}-.0654931{col 39}{space 2} .2148898{col 50}{space 1}   -0.30{col 59}{space 3}0.761{col 67}{space 4}-.4867489{col 80}{space 3} .3557626
{txt}{space 17}0.treata {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 10}presub3a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1676812{col 39}{space 2} .2258299{col 50}{space 1}    0.74{col 59}{space 3}0.458{col 67}{space 4}-.2750207{col 80}{space 3} .6103832
{txt}{space 25} {c |}
{space 15}1.medprice {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 8}presub3a#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .2494354{col 39}{space 2}  .250181{col 50}{space 1}    1.00{col 59}{space 3}0.319{col 67}{space 4}-.2410027{col 80}{space 3} .7398736
{txt}{space 25} {c |}
{space 10}treata#medprice {c |}
{space 21}0 1  {c |}{col 27}{res}{space 2}-.0182294{col 39}{space 2} .0375832{col 50}{space 1}   -0.49{col 59}{space 3}0.628{col 67}{space 4}-.0919049{col 80}{space 3} .0554461
{txt}{space 25} {c |}
{space 1}presub3a#treata#medprice {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 15}1.presub2a {c |}{col 27}{res}{space 2}-.0582552{col 39}{space 2} .2091002{col 50}{space 1}   -0.28{col 59}{space 3}0.781{col 67}{space 4}-.4681614{col 80}{space 3}  .351651
{txt}{space 25} {c |}
{space 10}presub2a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1326149{col 39}{space 2} .2206972{col 50}{space 1}    0.60{col 59}{space 3}0.548{col 67}{space 4}-.3000253{col 80}{space 3}  .565255
{txt}{space 25} {c |}
{space 8}presub2a#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .5595955{col 39}{space 2} .2739244{col 50}{space 1}    2.04{col 59}{space 3}0.041{col 67}{space 4} .0226124{col 80}{space 3} 1.096579
{txt}{space 25} {c |}
{space 1}presub2a#treata#medprice {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 15}1.presub1a {c |}{col 27}{res}{space 2}-.2254704{col 39}{space 2} .2067222{col 50}{space 1}   -1.09{col 59}{space 3}0.275{col 67}{space 4} -.630715{col 80}{space 3} .1797741
{txt}{space 25} {c |}
{space 10}presub1a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1615778{col 39}{space 2} .2152125{col 50}{space 1}    0.75{col 59}{space 3}0.453{col 67}{space 4}-.2603106{col 80}{space 3} .5834662
{txt}{space 25} {c |}
{space 8}presub1a#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .2606854{col 39}{space 2} .2414442{col 50}{space 1}    1.08{col 59}{space 3}0.280{col 67}{space 4}-.2126259{col 80}{space 3} .7339967
{txt}{space 25} {c |}
{space 1}presub1a#treata#medprice {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 18}1.sub1a {c |}{col 27}{res}{space 2} .4567221{col 39}{space 2}  .282155{col 50}{space 1}    1.62{col 59}{space 3}0.106{col 67}{space 4}-.0963958{col 80}{space 3}  1.00984
{txt}{space 25} {c |}
{space 13}sub1a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.5400186{col 39}{space 2} .2897499{col 50}{space 1}   -1.86{col 59}{space 3}0.062{col 67}{space 4}-1.108025{col 80}{space 3} .0279879
{txt}{space 25} {c |}
{space 11}sub1a#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.2328491{col 39}{space 2} .3154795{col 50}{space 1}   -0.74{col 59}{space 3}0.460{col 67}{space 4}-.8512942{col 80}{space 3} .3855959
{txt}{space 25} {c |}
{space 4}sub1a#treata#medprice {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 18}1.sub2a {c |}{col 27}{res}{space 2} .3699249{col 39}{space 2} .1694828{col 50}{space 1}    2.18{col 59}{space 3}0.029{col 67}{space 4}  .037682{col 80}{space 3} .7021677
{txt}{space 25} {c |}
{space 13}sub2a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.4181031{col 39}{space 2} .1803368{col 50}{space 1}   -2.32{col 59}{space 3}0.020{col 67}{space 4}-.7716233{col 80}{space 3}-.0645828
{txt}{space 25} {c |}
{space 11}sub2a#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.5182384{col 39}{space 2} .2448157{col 50}{space 1}   -2.12{col 59}{space 3}0.034{col 67}{space 4}-.9981588{col 80}{space 3}-.0383179
{txt}{space 25} {c |}
{space 4}sub2a#treata#medprice {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub1a {c |}{col 27}{res}{space 2}-.0276391{col 39}{space 2} .1730651{col 50}{space 1}   -0.16{col 59}{space 3}0.873{col 67}{space 4}-.3669046{col 80}{space 3} .3116263
{txt}{space 25} {c |}
{space 9}postsub1a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .2110426{col 39}{space 2} .1844716{col 50}{space 1}    1.14{col 59}{space 3}0.253{col 67}{space 4}-.1505834{col 80}{space 3} .5726686
{txt}{space 25} {c |}
{space 7}postsub1a#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .0891078{col 39}{space 2} .2369896{col 50}{space 1}    0.38{col 59}{space 3}0.707{col 67}{space 4}-.3754708{col 80}{space 3} .5536864
{txt}{space 25} {c |}
postsub1a#treata#medprice {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub2a {c |}{col 27}{res}{space 2}-.6147228{col 39}{space 2} .1887106{col 50}{space 1}   -3.26{col 59}{space 3}0.001{col 67}{space 4}-.9846585{col 80}{space 3}-.2447871
{txt}{space 25} {c |}
{space 9}postsub2a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .6551886{col 39}{space 2} .1999793{col 50}{space 1}    3.28{col 59}{space 3}0.001{col 67}{space 4} .2631624{col 80}{space 3} 1.047215
{txt}{space 25} {c |}
{space 7}postsub2a#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .6037594{col 39}{space 2} .1975298{col 50}{space 1}    3.06{col 59}{space 3}0.002{col 67}{space 4} .2165351{col 80}{space 3} .9909837
{txt}{space 25} {c |}
postsub2a#treata#medprice {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub3a {c |}{col 27}{res}{space 2}-.0615371{col 39}{space 2} .1545726{col 50}{space 1}   -0.40{col 59}{space 3}0.691{col 67}{space 4} -.364551{col 80}{space 3} .2414768
{txt}{space 25} {c |}
{space 9}postsub3a#treata {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0454306{col 39}{space 2} .1652786{col 50}{space 1}   -0.27{col 59}{space 3}0.783{col 67}{space 4}-.3694319{col 80}{space 3} .2785707
{txt}{space 25} {c |}
{space 7}postsub3a#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.2851973{col 39}{space 2} .2034818{col 50}{space 1}   -1.40{col 59}{space 3}0.161{col 67}{space 4}-.6840895{col 80}{space 3} .1136949
{txt}{space 25} {c |}
postsub3a#treata#medprice {c |}
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 21}mage {c |}{col 27}{res}{space 2}-.0048416{col 39}{space 2} .0005924{col 50}{space 1}   -8.17{col 59}{space 3}0.000{col 67}{space 4}-.0060029{col 80}{space 3}-.0036802
{txt}{space 20}mage2 {c |}{col 27}{res}{space 2} .0000479{col 39}{space 2} 7.92e-06{col 50}{space 1}    6.05{col 59}{space 3}0.000{col 67}{space 4} .0000323{col 80}{space 3} .0000634
{txt}{space 20}_cons {c |}{col 27}{res}{space 2} .0542004{col 39}{space 2} .0086543{col 50}{space 1}    6.26{col 59}{space 3}0.000{col 67}{space 4} .0372351{col 80}{space 3} .0711658
{txt}{hline 26}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   108619{col 27}{space 1}   108619{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      121{col 27}{space 1}        0{col 39}{result}{space 1}      121{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu_below
{txt}
{com}. 
. esttab   subu subu_above subu_below, se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3a 1.presub2a 1.presub1a 1.sub1a 1.sub2a 1.postsub1a 1.postsub2a 1.postsub3a) keep(1.presub3a 1.presub2a 1.presub1a 1.sub1a 1.sub2a 1.postsub1a 1.postsub2a 1.postsub3a) 
{res}
{txt}{hline 60}
{txt}                      (1)             (2)             (3)   
{txt}                     subu      subu_above      subu_below   
{txt}{hline 60}
{txt}1.presub3a  {res}        0.061           0.184          -0.065   {txt}
            {res} {ralign 12:{txt:(}0.158{txt:)}}    {ralign 12:{txt:(}0.181{txt:)}}    {ralign 12:{txt:(}0.215{txt:)}}   {txt}
{txt}1.presub2a  {res}        0.221           0.501**        -0.058   {txt}
            {res} {ralign 12:{txt:(}0.176{txt:)}}    {ralign 12:{txt:(}0.229{txt:)}}    {ralign 12:{txt:(}0.209{txt:)}}   {txt}
{txt}1.presub1a  {res}       -0.111           0.035          -0.225   {txt}
            {res} {ralign 12:{txt:(}0.164{txt:)}}    {ralign 12:{txt:(}0.199{txt:)}}    {ralign 12:{txt:(}0.207{txt:)}}   {txt}
{txt}1.sub1a     {res}        0.382*          0.224           0.457   {txt}
            {res} {ralign 12:{txt:(}0.208{txt:)}}    {ralign 12:{txt:(}0.185{txt:)}}    {ralign 12:{txt:(}0.282{txt:)}}   {txt}
{txt}1.sub2a     {res}        0.195          -0.148           0.370** {txt}
            {res} {ralign 12:{txt:(}0.149{txt:)}}    {ralign 12:{txt:(}0.217{txt:)}}    {ralign 12:{txt:(}0.169{txt:)}}   {txt}
{txt}1.postsub1a {res}        0.005           0.061          -0.028   {txt}
            {res} {ralign 12:{txt:(}0.150{txt:)}}    {ralign 12:{txt:(}0.213{txt:)}}    {ralign 12:{txt:(}0.173{txt:)}}   {txt}
{txt}1.postsub2a {res}       -0.412**        -0.011          -0.615***{txt}
            {res} {ralign 12:{txt:(}0.173{txt:)}}    {ralign 12:{txt:(}0.202{txt:)}}    {ralign 12:{txt:(}0.189{txt:)}}   {txt}
{txt}1.postsub3a {res}       -0.147          -0.347**        -0.062   {txt}
            {res} {ralign 12:{txt:(}0.131{txt:)}}    {ralign 12:{txt:(}0.172{txt:)}}    {ralign 12:{txt:(}0.155{txt:)}}   {txt}
{txt}{hline 60}
{txt}N           {res}       267502          267502          267502   {txt}
{txt}{hline 60}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. esttab   subu subu_above subu_below using "R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_wm_medianprice.tex", replace se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3a 1.presub2a 1.presub1a 1.sub1a 1.sub2a 1.postsub1a 1.postsub2a 1.postsub3a) keep(1.presub3a 1.presub2a 1.presub1a 1.sub1a 1.sub2a 1.postsub1a 1.postsub2a 1.postsub3a) 
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_wm_medianprice.tex"'})

{com}. 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++                          
. ***UNIT SALES, NON-SUBSIDIZED
. 
. reghdfe dlogunits i.presub3a##i.treata i.presub2a##i.treata i.presub1a##i.treata i.sub1a##i.treata i.sub2a##i.treata i.postsub1a##i.treata i.postsub2a##i.treata i.postsub3a##i.treata  mage mage2 , absorb(id2 cmt) cluster(id)
{res}{txt}(dropped 88828 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.treata{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 1.treata omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   267,502
{txt}Absorbing 2 HDFE groups{col 51}F({res}  18{txt},{res}   6418{txt}){col 67}= {res}      6.65
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4543
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0805
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     6,419{txt}{col 51}Root MSE{col 67}= {res}    0.7124

{txt}{ralign 82:(Std. err. adjusted for {res:6,419} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogunits{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3a {c |}{col 18}{res}{space 2} .1021886{col 30}{space 2}  .069511{col 41}{space 1}    1.47{col 50}{space 3}0.142{col 58}{space 4}-.0340761{col 71}{space 3} .2384534
{txt}{space 8}1.treata {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0408984{col 30}{space 2} .1729348{col 41}{space 1}   -0.24{col 50}{space 3}0.813{col 58}{space 4}-.3799084{col 71}{space 3} .2981115
{txt}{space 16} {c |}
{space 6}1.presub2a {c |}{col 18}{res}{space 2} .0743603{col 30}{space 2} .0706535{col 41}{space 1}    1.05{col 50}{space 3}0.293{col 58}{space 4}-.0641441{col 71}{space 3} .2128647
{txt}{space 16} {c |}
{space 1}presub2a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .1468662{col 30}{space 2} .1893705{col 41}{space 1}    0.78{col 50}{space 3}0.438{col 58}{space 4}-.2243632{col 71}{space 3} .5180957
{txt}{space 16} {c |}
{space 6}1.presub1a {c |}{col 18}{res}{space 2}-.0638962{col 30}{space 2} .0597954{col 41}{space 1}   -1.07{col 50}{space 3}0.285{col 58}{space 4}-.1811151{col 71}{space 3} .0533228
{txt}{space 16} {c |}
{space 1}presub1a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0473709{col 30}{space 2} .1743099{col 41}{space 1}   -0.27{col 50}{space 3}0.786{col 58}{space 4}-.3890764{col 71}{space 3} .2943345
{txt}{space 16} {c |}
{space 9}1.sub1a {c |}{col 18}{res}{space 2}-.0832957{col 30}{space 2} .0661226{col 41}{space 1}   -1.26{col 50}{space 3}0.208{col 58}{space 4} -.212918{col 71}{space 3} .0463266
{txt}{space 16} {c |}
{space 4}sub1a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .4653005{col 30}{space 2} .2178274{col 41}{space 1}    2.14{col 50}{space 3}0.033{col 58}{space 4} .0382862{col 71}{space 3} .8923148
{txt}{space 16} {c |}
{space 9}1.sub2a {c |}{col 18}{res}{space 2}-.0481632{col 30}{space 2} .0614622{col 41}{space 1}   -0.78{col 50}{space 3}0.433{col 58}{space 4}-.1686497{col 71}{space 3} .0723232
{txt}{space 16} {c |}
{space 4}sub2a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .2432943{col 30}{space 2} .1612434{col 41}{space 1}    1.51{col 50}{space 3}0.131{col 58}{space 4}-.0727966{col 71}{space 3} .5593851
{txt}{space 16} {c |}
{space 5}1.postsub1a {c |}{col 18}{res}{space 2} .1834049{col 30}{space 2} .0638965{col 41}{space 1}    2.87{col 50}{space 3}0.004{col 58}{space 4} .0581464{col 71}{space 3} .3086633
{txt}{space 16} {c |}
postsub1a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.1786894{col 30}{space 2} .1634671{col 41}{space 1}   -1.09{col 50}{space 3}0.274{col 58}{space 4}-.4991395{col 71}{space 3} .1417607
{txt}{space 16} {c |}
{space 5}1.postsub2a {c |}{col 18}{res}{space 2} .0404435{col 30}{space 2} .0661802{col 41}{space 1}    0.61{col 50}{space 3}0.541{col 58}{space 4}-.0892917{col 71}{space 3} .1701788
{txt}{space 16} {c |}
postsub2a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} -.452554{col 30}{space 2} .1853917{col 41}{space 1}   -2.44{col 50}{space 3}0.015{col 58}{space 4}-.8159836{col 71}{space 3}-.0891244
{txt}{space 16} {c |}
{space 5}1.postsub3a {c |}{col 18}{res}{space 2}-.1069588{col 30}{space 2} .0583889{col 41}{space 1}   -1.83{col 50}{space 3}0.067{col 58}{space 4}-.2214206{col 71}{space 3}  .007503
{txt}{space 16} {c |}
postsub3a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0397062{col 30}{space 2}  .143505{col 41}{space 1}   -0.28{col 50}{space 3}0.782{col 58}{space 4}-.3210238{col 71}{space 3} .2416115
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2}-.0048484{col 30}{space 2} .0005927{col 41}{space 1}   -8.18{col 50}{space 3}0.000{col 58}{space 4}-.0060103{col 71}{space 3}-.0036866
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} .0000479{col 30}{space 2} 7.92e-06{col 41}{space 1}    6.05{col 50}{space 3}0.000{col 58}{space 4} .0000324{col 71}{space 3} .0000635
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} .0542449{col 30}{space 2} .0086575{col 41}{space 1}    6.27{col 50}{space 3}0.000{col 58}{space 4} .0372734{col 71}{space 3} .0712164
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   108619{col 27}{space 1}   108619{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      121{col 27}{space 1}        0{col 39}{result}{space 1}      121{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store nonsubu
{txt}
{com}. 
.                 ***Program, preshift and postshift effects 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*(1+exp(_b[1.sub2a]))-2)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1a])*(1+exp(_b[1.presub2a]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*exp(_b[1.sub2a])*exp(_b[1.postsub1a])*(1+exp(_b[1.postsub2a]))-2)), post;

     {txt}program: {res}1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*(1+exp(_b[1.sub2a]))-2)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1a])*(1+exp(_b[1.presub2a]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*exp(_b[1.sub2a])*exp(_b[1.postsub1a])*(1+exp(_b[1.postsub2a]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} -.092102{col 26}{space 2} .0862372{col 37}{space 1}   -1.07{col 46}{space 3}0.286{col 54}{space 4}-.2611238{col 67}{space 3} .0769197
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.0256893{col 26}{space 2} .0611285{col 37}{space 1}   -0.42{col 46}{space 3}0.674{col 54}{space 4} -.145499{col 67}{space 3} .0941205
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .0863639{col 26}{space 2}  .115263{col 37}{space 1}    0.75{col 46}{space 3}0.454{col 54}{space 4}-.1395474{col 67}{space 3} .3122752
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit    cr
{txt}delimiter now cr
{com}.                                         
.                 ***Net program effect 
.                 nlcom           _b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/2)*_b[preshift]+ (2/2)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0314274{col 26}{space 2} .2328069{col 37}{space 1}   -0.13{col 46}{space 3}0.893{col 54}{space 4}-.4877206{col 67}{space 3} .4248657
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
. 
.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. 
. ***PRICES, SUBSIDIZED
. 
. reghdfe dlogprice i.presub3a##ib1.treata i.presub2a##ib1.treata i.presub1a##ib1.treata i.sub1a##ib1.treata i.sub2a##ib1.treata i.postsub1a##ib1.treata i.postsub2a##ib1.treata i.postsub3a##ib1.treata   mage mage2 if samples , absorb(id2 cmt) cluster(id)
{res}{txt}note: {res}0bn.treata{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 0.treata omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   267,502
{txt}Absorbing 2 HDFE groups{col 51}F({res}  18{txt},{res}   6418{txt}){col 67}= {res}      0.97
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.4954
{txt}{col 51}R-squared{col 67}= {res}    0.4176
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0186
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     6,419{txt}{col 51}Root MSE{col 67}= {res}    0.0659

{txt}{ralign 82:(Std. err. adjusted for {res:6,419} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogprice{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3a {c |}{col 18}{res}{space 2}-.0081505{col 30}{space 2}  .015207{col 41}{space 1}   -0.54{col 50}{space 3}0.592{col 58}{space 4}-.0379612{col 71}{space 3} .0216602
{txt}{space 8}0.treata {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0026332{col 30}{space 2} .0162071{col 41}{space 1}    0.16{col 50}{space 3}0.871{col 58}{space 4}-.0291381{col 71}{space 3} .0344044
{txt}{space 16} {c |}
{space 6}1.presub2a {c |}{col 18}{res}{space 2} .0221643{col 30}{space 2} .0137932{col 41}{space 1}    1.61{col 50}{space 3}0.108{col 58}{space 4}-.0048751{col 71}{space 3} .0492037
{txt}{space 16} {c |}
{space 1}presub2a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0174365{col 30}{space 2} .0148532{col 41}{space 1}   -1.17{col 50}{space 3}0.240{col 58}{space 4}-.0465536{col 71}{space 3} .0116806
{txt}{space 16} {c |}
{space 6}1.presub1a {c |}{col 18}{res}{space 2}-.0185177{col 30}{space 2} .0146569{col 41}{space 1}   -1.26{col 50}{space 3}0.206{col 58}{space 4}-.0472501{col 71}{space 3} .0102147
{txt}{space 16} {c |}
{space 1}presub1a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0124424{col 30}{space 2} .0156863{col 41}{space 1}    0.79{col 50}{space 3}0.428{col 58}{space 4} -.018308{col 71}{space 3} .0431929
{txt}{space 16} {c |}
{space 9}1.sub1a {c |}{col 18}{res}{space 2}  .016302{col 30}{space 2}  .012858{col 41}{space 1}    1.27{col 50}{space 3}0.205{col 58}{space 4}-.0089039{col 71}{space 3} .0415079
{txt}{space 16} {c |}
{space 4}sub1a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} -.013239{col 30}{space 2} .0139678{col 41}{space 1}   -0.95{col 50}{space 3}0.343{col 58}{space 4}-.0406206{col 71}{space 3} .0141425
{txt}{space 16} {c |}
{space 9}1.sub2a {c |}{col 18}{res}{space 2} .0078652{col 30}{space 2} .0132835{col 41}{space 1}    0.59{col 50}{space 3}0.554{col 58}{space 4}-.0181749{col 71}{space 3} .0339053
{txt}{space 16} {c |}
{space 4}sub2a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0128059{col 30}{space 2} .0143311{col 41}{space 1}   -0.89{col 50}{space 3}0.372{col 58}{space 4}-.0408996{col 71}{space 3} .0152879
{txt}{space 16} {c |}
{space 5}1.postsub1a {c |}{col 18}{res}{space 2}-.0018379{col 30}{space 2} .0164595{col 41}{space 1}   -0.11{col 50}{space 3}0.911{col 58}{space 4} -.034104{col 71}{space 3} .0304281
{txt}{space 16} {c |}
postsub1a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0019175{col 30}{space 2} .0174973{col 41}{space 1}   -0.11{col 50}{space 3}0.913{col 58}{space 4} -.036218{col 71}{space 3} .0323831
{txt}{space 16} {c |}
{space 5}1.postsub2a {c |}{col 18}{res}{space 2} .0253423{col 30}{space 2} .0151489{col 41}{space 1}    1.67{col 50}{space 3}0.094{col 58}{space 4}-.0043547{col 71}{space 3} .0550393
{txt}{space 16} {c |}
postsub2a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0175801{col 30}{space 2} .0158827{col 41}{space 1}   -1.11{col 50}{space 3}0.268{col 58}{space 4}-.0487155{col 71}{space 3} .0135553
{txt}{space 16} {c |}
{space 5}1.postsub3a {c |}{col 18}{res}{space 2}-.0145342{col 30}{space 2} .0145279{col 41}{space 1}   -1.00{col 50}{space 3}0.317{col 58}{space 4}-.0430137{col 71}{space 3} .0139454
{txt}{space 16} {c |}
postsub3a#treata {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0085612{col 30}{space 2} .0152518{col 41}{space 1}    0.56{col 50}{space 3}0.575{col 58}{space 4}-.0213374{col 71}{space 3} .0384599
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2}-.0000174{col 30}{space 2} .0000477{col 41}{space 1}   -0.36{col 50}{space 3}0.716{col 58}{space 4} -.000111{col 71}{space 3} .0000762
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} 5.09e-07{col 30}{space 2} 6.31e-07{col 41}{space 1}    0.81{col 50}{space 3}0.420{col 58}{space 4}-7.27e-07{col 71}{space 3} 1.75e-06
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}-.0037322{col 30}{space 2} .0007112{col 41}{space 1}   -5.25{col 50}{space 3}0.000{col 58}{space 4}-.0051264{col 71}{space 3}-.0023379
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   108619{col 27}{space 1}   108619{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      121{col 27}{space 1}        0{col 39}{result}{space 1}      121{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subp
{txt}
{com}. 
.                 nlcom 1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*(1+exp(_b[1.sub2a]))-2)

       {txt}_nl_1: {res}1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*(1+exp(_b[1.sub2a]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0241765{col 26}{space 2} .0170094{col 37}{space 1}    1.42{col 46}{space 3}0.155{col 54}{space 4}-.0091613{col 67}{space 3} .0575143
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                                 
.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***PRICES, NON-SUBSIDIZED       
.         
. reghdfe dlogprice i.presub3a##i.treata i.presub2a##i.treata i.presub1a##i.treata i.sub1a##i.treata i.sub2a##i.treata i.postsub1a##i.treata i.postsub2a##i.treata i.postsub3a##i.treata   mage mage2 if samples, absorb(id2 cmt) cluster(id)
{res}{txt}note: {res}1bn.treata{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 1.treata omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   267,502
{txt}Absorbing 2 HDFE groups{col 51}F({res}  18{txt},{res}   6418{txt}){col 67}= {res}      0.97
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.4954
{txt}{col 51}R-squared{col 67}= {res}    0.4176
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0186
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     6,419{txt}{col 51}Root MSE{col 67}= {res}    0.0659

{txt}{ralign 82:(Std. err. adjusted for {res:6,419} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogprice{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3a {c |}{col 18}{res}{space 2}-.0055173{col 30}{space 2} .0055892{col 41}{space 1}   -0.99{col 50}{space 3}0.324{col 58}{space 4}-.0164741{col 71}{space 3} .0054395
{txt}{space 8}1.treata {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0026332{col 30}{space 2} .0162071{col 41}{space 1}   -0.16{col 50}{space 3}0.871{col 58}{space 4}-.0344044{col 71}{space 3} .0291381
{txt}{space 16} {c |}
{space 6}1.presub2a {c |}{col 18}{res}{space 2} .0047278{col 30}{space 2} .0055317{col 41}{space 1}    0.85{col 50}{space 3}0.393{col 58}{space 4}-.0061161{col 71}{space 3} .0155717
{txt}{space 16} {c |}
{space 1}presub2a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0174365{col 30}{space 2} .0148532{col 41}{space 1}    1.17{col 50}{space 3}0.240{col 58}{space 4}-.0116806{col 71}{space 3} .0465536
{txt}{space 16} {c |}
{space 6}1.presub1a {c |}{col 18}{res}{space 2}-.0060753{col 30}{space 2} .0055914{col 41}{space 1}   -1.09{col 50}{space 3}0.277{col 58}{space 4}-.0170364{col 71}{space 3} .0048857
{txt}{space 16} {c |}
{space 1}presub1a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0124424{col 30}{space 2} .0156863{col 41}{space 1}   -0.79{col 50}{space 3}0.428{col 58}{space 4}-.0431929{col 71}{space 3}  .018308
{txt}{space 16} {c |}
{space 9}1.sub1a {c |}{col 18}{res}{space 2}  .003063{col 30}{space 2} .0054444{col 41}{space 1}    0.56{col 50}{space 3}0.574{col 58}{space 4}-.0076097{col 71}{space 3} .0137357
{txt}{space 16} {c |}
{space 4}sub1a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}  .013239{col 30}{space 2} .0139678{col 41}{space 1}    0.95{col 50}{space 3}0.343{col 58}{space 4}-.0141425{col 71}{space 3} .0406206
{txt}{space 16} {c |}
{space 9}1.sub2a {c |}{col 18}{res}{space 2}-.0049407{col 30}{space 2} .0053843{col 41}{space 1}   -0.92{col 50}{space 3}0.359{col 58}{space 4}-.0154957{col 71}{space 3} .0056143
{txt}{space 16} {c |}
{space 4}sub2a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0128059{col 30}{space 2} .0143311{col 41}{space 1}    0.89{col 50}{space 3}0.372{col 58}{space 4}-.0152879{col 71}{space 3} .0408996
{txt}{space 16} {c |}
{space 5}1.postsub1a {c |}{col 18}{res}{space 2}-.0037554{col 30}{space 2} .0059272{col 41}{space 1}   -0.63{col 50}{space 3}0.526{col 58}{space 4}-.0153747{col 71}{space 3}  .007864
{txt}{space 16} {c |}
postsub1a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0019175{col 30}{space 2} .0174973{col 41}{space 1}    0.11{col 50}{space 3}0.913{col 58}{space 4}-.0323831{col 71}{space 3}  .036218
{txt}{space 16} {c |}
{space 5}1.postsub2a {c |}{col 18}{res}{space 2} .0077622{col 30}{space 2} .0047665{col 41}{space 1}    1.63{col 50}{space 3}0.103{col 58}{space 4}-.0015818{col 71}{space 3} .0171062
{txt}{space 16} {c |}
postsub2a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0175801{col 30}{space 2} .0158827{col 41}{space 1}    1.11{col 50}{space 3}0.268{col 58}{space 4}-.0135553{col 71}{space 3} .0487155
{txt}{space 16} {c |}
{space 5}1.postsub3a {c |}{col 18}{res}{space 2}-.0059729{col 30}{space 2} .0046377{col 41}{space 1}   -1.29{col 50}{space 3}0.198{col 58}{space 4}-.0150643{col 71}{space 3} .0031185
{txt}{space 16} {c |}
postsub3a#treata {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0085612{col 30}{space 2} .0152518{col 41}{space 1}   -0.56{col 50}{space 3}0.575{col 58}{space 4}-.0384599{col 71}{space 3} .0213374
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2}-.0000174{col 30}{space 2} .0000477{col 41}{space 1}   -0.36{col 50}{space 3}0.716{col 58}{space 4} -.000111{col 71}{space 3} .0000762
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} 5.09e-07{col 30}{space 2} 6.31e-07{col 41}{space 1}    0.81{col 50}{space 3}0.420{col 58}{space 4}-7.27e-07{col 71}{space 3} 1.75e-06
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}-.0037322{col 30}{space 2} .0007112{col 41}{space 1}   -5.25{col 50}{space 3}0.000{col 58}{space 4}-.0051264{col 71}{space 3}-.0023379
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   108619{col 27}{space 1}   108619{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      121{col 27}{space 1}        0{col 39}{result}{space 1}      121{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store nonsubp       
{txt}
{com}.                 
.                 nlcom 1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*(1+exp(_b[1.sub2a]))-2)

       {txt}_nl_1: {res}1/2*(exp(_b[1.presub2a])*exp(_b[1.presub1a])*exp(_b[1.sub1a])*(1+exp(_b[1.sub2a]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0007516{col 26}{space 2} .0068517{col 37}{space 1}   -0.11{col 46}{space 3}0.913{col 54}{space 4}-.0141806{col 67}{space 3} .0126774
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.   
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***TABLES
. 
. **UNITS AND PRICES
. esttab   subu nonsubu subp nonsubp, se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3a 1.presub2a 1.presub1a 1.sub1a 1.sub2a 1.postsub1a 1.postsub2a 1.postsub3a) keep(1.presub3a 1.presub2a 1.presub1a 1.sub1a 1.sub2a 1.postsub1a 1.postsub2a 1.postsub3a) 
{res}
{txt}{hline 76}
{txt}                      (1)             (2)             (3)             (4)   
{txt}                     subu         nonsubu            subp         nonsubp   
{txt}{hline 76}
{txt}1.presub3a  {res}        0.061           0.102          -0.008          -0.006   {txt}
            {res} {ralign 12:{txt:(}0.158{txt:)}}    {ralign 12:{txt:(}0.070{txt:)}}    {ralign 12:{txt:(}0.015{txt:)}}    {ralign 12:{txt:(}0.006{txt:)}}   {txt}
{txt}1.presub2a  {res}        0.221           0.074           0.022           0.005   {txt}
            {res} {ralign 12:{txt:(}0.176{txt:)}}    {ralign 12:{txt:(}0.071{txt:)}}    {ralign 12:{txt:(}0.014{txt:)}}    {ralign 12:{txt:(}0.006{txt:)}}   {txt}
{txt}1.presub1a  {res}       -0.111          -0.064          -0.019          -0.006   {txt}
            {res} {ralign 12:{txt:(}0.164{txt:)}}    {ralign 12:{txt:(}0.060{txt:)}}    {ralign 12:{txt:(}0.015{txt:)}}    {ralign 12:{txt:(}0.006{txt:)}}   {txt}
{txt}1.sub1a     {res}        0.382*         -0.083           0.016           0.003   {txt}
            {res} {ralign 12:{txt:(}0.208{txt:)}}    {ralign 12:{txt:(}0.066{txt:)}}    {ralign 12:{txt:(}0.013{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}   {txt}
{txt}1.sub2a     {res}        0.195          -0.048           0.008          -0.005   {txt}
            {res} {ralign 12:{txt:(}0.149{txt:)}}    {ralign 12:{txt:(}0.061{txt:)}}    {ralign 12:{txt:(}0.013{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}   {txt}
{txt}1.postsub1a {res}        0.005           0.183***       -0.002          -0.004   {txt}
            {res} {ralign 12:{txt:(}0.150{txt:)}}    {ralign 12:{txt:(}0.064{txt:)}}    {ralign 12:{txt:(}0.016{txt:)}}    {ralign 12:{txt:(}0.006{txt:)}}   {txt}
{txt}1.postsub2a {res}       -0.412**         0.040           0.025*          0.008   {txt}
            {res} {ralign 12:{txt:(}0.173{txt:)}}    {ralign 12:{txt:(}0.066{txt:)}}    {ralign 12:{txt:(}0.015{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}   {txt}
{txt}1.postsub3a {res}       -0.147          -0.107*         -0.015          -0.006   {txt}
            {res} {ralign 12:{txt:(}0.131{txt:)}}    {ralign 12:{txt:(}0.058{txt:)}}    {ralign 12:{txt:(}0.015{txt:)}}    {ralign 12:{txt:(}0.005{txt:)}}   {txt}
{txt}{hline 76}
{txt}N           {res}       267502          267502          267502          267502   {txt}
{txt}{hline 76}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subu nonsubu subp nonsubp  using "R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_wm.tex", replace se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3a 1.presub2a 1.presub1a 1.sub1a 1.sub2a 1.postsub1a 1.postsub2a 1.postsub3a) keep(1.presub3a 1.presub2a 1.presub1a 1.sub1a 1.sub2a 1.postsub1a 1.postsub2a 1.postsub3a)
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_wm.tex"'})

{com}. 
. esttab   subu_cy  subu_trends, se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3a 1.presub2a 1.presub1a 1.sub1a 1.sub2a 1.postsub1a 1.postsub2a 1.postsub3a) keep(1.presub3a 1.presub2a 1.presub1a 1.sub1a 1.sub2a 1.postsub1a 1.postsub2a 1.postsub3a)
{res}
{txt}{hline 44}
{txt}                      (1)             (2)   
{txt}                  subu_cy     subu_trends   
{txt}{hline 44}
{txt}1.presub3a  {res}       -0.030           0.062   {txt}
            {res} {ralign 12:{txt:(}0.159{txt:)}}    {ralign 12:{txt:(}0.158{txt:)}}   {txt}
{txt}1.presub2a  {res}        0.131           0.222   {txt}
            {res} {ralign 12:{txt:(}0.176{txt:)}}    {ralign 12:{txt:(}0.176{txt:)}}   {txt}
{txt}1.presub1a  {res}       -0.200          -0.111   {txt}
            {res} {ralign 12:{txt:(}0.165{txt:)}}    {ralign 12:{txt:(}0.164{txt:)}}   {txt}
{txt}1.sub1a     {res}        0.294           0.382*  {txt}
            {res} {ralign 12:{txt:(}0.210{txt:)}}    {ralign 12:{txt:(}0.208{txt:)}}   {txt}
{txt}1.sub2a     {res}        0.107           0.196   {txt}
            {res} {ralign 12:{txt:(}0.150{txt:)}}    {ralign 12:{txt:(}0.149{txt:)}}   {txt}
{txt}1.postsub1a {res}       -0.083           0.005   {txt}
            {res} {ralign 12:{txt:(}0.152{txt:)}}    {ralign 12:{txt:(}0.150{txt:)}}   {txt}
{txt}1.postsub2a {res}       -0.501***       -0.412** {txt}
            {res} {ralign 12:{txt:(}0.176{txt:)}}    {ralign 12:{txt:(}0.173{txt:)}}   {txt}
{txt}1.postsub3a {res}       -0.235*         -0.146   {txt}
            {res} {ralign 12:{txt:(}0.135{txt:)}}    {ralign 12:{txt:(}0.131{txt:)}}   {txt}
{txt}{hline 44}
{txt}N           {res}       267502          267502   {txt}
{txt}{hline 44}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}.   
. esttab   subu_cy  subu_trends using "R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_wm_cy.tex", replace se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3a 1.presub2a 1.presub1a 1.sub1a 1.sub2a 1.postsub1a 1.postsub2a 1.postsub3a) keep(1.presub3a 1.presub2a 1.presub1a 1.sub1a 1.sub2a 1.postsub1a 1.postsub2a 1.postsub3a) 
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_10_wm_cy.tex"'})

{com}. 
. 
. restore
{txt}
{com}. 
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}R:\WSV2\TBu_BMa\Subsidies Project\Results\AT_Programs_Estimates_2023.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}19 Sep 2023, 09:20:55
{txt}{.-}
{smcl}
{txt}{sf}{ul off}